Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tree-Structural pseudo-classes and pseudo-elements #9808

Open
annevk opened this issue Jan 17, 2024 · 1 comment
Open

Tree-Structural pseudo-classes and pseudo-elements #9808

annevk opened this issue Jan 17, 2024 · 1 comment
Labels
selectors-4 Current Work

Comments

@annevk
Copy link
Member

annevk commented Jan 17, 2024

The structural pseudo-classes only apply to elements in the document tree; they must never match pseudo-elements.

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?

@annevk annevk added the selectors-4 Current Work label Jan 17, 2024
@nt1m
Copy link
Member

nt1m commented Jan 17, 2024

@emilio suggested in #9795 that the latter is better so @supports selector() can reflect it. I tend to agree.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
selectors-4 Current Work
2 participants