W3C home > Mailing lists > Public > public-css-archive@w3.org > July 2018

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

From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
Date: Fri, 13 Jul 2018 19:34:14 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-404932227-1531510453-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 19 October 2021 01:30:53 UTC