[csswg-drafts] Tree-Structural pseudo-classes and pseudo-elements (#9808)

annevk has just created a new issue for https://github.com/w3c/csswg-drafts:

== Tree-Structural pseudo-classes and pseudo-elements ==
> The [structural pseudo-classes](https://drafts.csswg.org/selectors-4/#structural-pseudo-classes) only apply to elements in the document tree; they must never match [pseudo-elements](https://drafts.csswg.org/selectors-4/#pseudo-element).

Do they never match or do they never parse?

I think it's the latter, though per https://drafts.csswg.org/selectors-4/#pseudo-element-states I guess a different specification could change that? Having multiple specifications rule over whether a selector parses does not seem great. Can that be changed somehow so there is more centralized authority on that question?

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9808 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 17 January 2024 08:36:05 UTC