Hello Im try to set css attribute to element, which create by pseudo-class ":after"
I'm know how to get:
element = document.querySelector('.some-class');
var top = getComputedStyle(element, ':after').getPropertyValue("top")
but object is returned by this method is read only
I try this:
element = document.querySelector('.some-class:after');
element.style.top = "100px";
but it not work...