3 ms·
CSS spec says no, unfortunately. Pseudo-elements aren't part of the DOM and thus can't be selected by any means.
by coreymatyas 7y ago
CSS spec says no, unfortunately. Pseudo-elements aren't part of the DOM and thus can't be selected by any means.
- LeonB 7y agothe only approach remaining would be to have some minimal vanilla js, as part of the page, that rewrites the dom to include the tags. This would also alleviate the need to use CSS, and in particular the repetitive CSS. It would also allow the tags/attributes to be styled in a more idiomatic way. But i'm out of time on this idea ;)