-
Notifications
You must be signed in to change notification settings - Fork 757
Description
Is there an enforced pattern to naming the anchor ids used to link to specific sections in the selectors specification? Or, do they just vary inconsistently, as they seem to me? I’m sorry if I misunderstand the logic.
For instance, the section for :not() uses #negation, :something uses #relational, and :matches() uses #matches. This seems like a conceptual pattern. However, the section for :dir() uses #the-dir-pseudo, :lang() uses #the-lang-pseudo, and any-link uses #the-any-link-pseudo. This seems like a literal pattern, and it appears most often in the specification, with a minor variation when it’s dropped for :focus-visible (#focus-visible-pseudo) and :focus-within (#focus-within-pseudo). There are other exceptions, still, like :drop and :drop() which use #drag-pseudos, while :playing and :pause use #video-state.
I’m sorry to even concern you with this, but I would like to better understand and predict these ids in order to easily discuss concepts online, name polyfills, file caniuse requests, add cssdb features, etc.