Unsupported pseudo-elements are currently marked as supported using the -webkit- prefix.
The reason for this is a web compatibility quirk required by Selectors 4 that says that pseudo-elements with that prefix have to be treated valid at parse time. So testing them with document.querySelector() does not throw in this case.
That means we have to find another way to test these pseudo-elements.
Unsupported pseudo-elements are currently marked as supported using the
-webkit-
prefix.The reason for this is a web compatibility quirk required by Selectors 4 that says that pseudo-elements with that prefix have to be treated valid at parse time. So testing them with
document.querySelector()
does not throw in this case.That means we have to find another way to test these pseudo-elements.
Sebastian