Skip to content

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

@chriseppstein

Description

@chriseppstein

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions