-1

What is the reason that pseudo-selectors in CSS don't have an API for Javascript?

Hugo
  • 630
  • 6
  • 12

1 Answers1

1

I think it is because they are not real.

a pseudo-element represents an element not directly present in the document tree. They are used to create abstractions about the document tree beyond those provided by the document tree.

w3c:pseudo-element

Zaan Chi
  • 161
  • 5