Re: [csswg-drafts] [selectors4] Name the “functional pseudo-class like :matches() with 0 specificity”

What about `:any`? It's short, intuitive, and it's already implemented (but with a prefix and specificity 0,1,0 instead of 0,0,0).

There are also some old documentations mentioning `:any`, so people may get confused about `:any`, `:matches` and `:something`. Renaming `:something` to `:any` reduces the cognitive load, it's one option less to remember. Sure, if some documentation mentioned the specificity of `:any` then it will become invalid, but usually the focus was in the functionality instead of the specificity.

-- 
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2143#issuecomment-404932227 using your GitHub account

Received on Friday, 13 July 2018 19:34:17 UTC