Skip to content

[selectors-4] Clarify the value range of pseudo selectors #11299

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

Open
cdoublev opened this issue Nov 30, 2024 · 0 comments
Open

[selectors-4] Clarify the value range of pseudo selectors #11299

cdoublev opened this issue Nov 30, 2024 · 0 comments
Labels
selectors-4 Current Work

Comments

@cdoublev
Copy link
Collaborator

§ Grammar defines pseudos with a relatively open range of values that does not come with any restriction, at least not within reasonable reading proximity.

§ Pseudo-elements says that pseudos are defined by CSS specifications and the host language.

§ Invalid Selectors says that UAs must treat as invalid any pseudos for which they have no usable level of support. But in a non-normative note, as reported in #8305. § Appendix B: [...] Web Compat adds an exception: UAs must support ::webkit-unknown even if they have no support for it.

A note similar to the one below could be added in § Grammar:

The <pseudo-element-selector> and <pseudo-class-selector> productions are intentionally open to represent any pseudo-class and pseudo-element defined in CSS specifications or by the host language, that is supported by the UA. As per Patial implementations, other pseudos are otherwise invalid, unless otherwise specified (like in § Appendix B: [...] Web Compat).

@cdoublev cdoublev added the selectors-4 Current Work label Nov 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
selectors-4 Current Work
Projects
None yet
Development

No branches or pull requests

1 participant