Skip to content

[selectors-4] mention the specificity rules for special pseudo-classes #2129

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

Closed
chriseppstein opened this issue Dec 22, 2017 · 1 comment
Closed

Comments

@chriseppstein
Copy link

There are special rules for certain functional psuedo-classes called out here:
https://drafts.csswg.org/selectors-4/#specificity-rules

  • :matches()
  • :is()
  • :nth-child(), :nth-last-child(), :nth-of-type(), or :nth-last-of-type()
  • :not()

I think it would be very helpful if those special rules were noted (probably with a link) in the specific sections for each pseudo class. E.g. https://drafts.csswg.org/selectors-4/#matches-pseudo

@chriseppstein
Copy link
Author

🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant