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: Tommy Hodgins via GitHub <sysbot+gh@w3.org>
Date: Fri, 13 Jul 2018 17:26:50 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-404899728-1531502809-sysbot+gh@w3.org>
I'm still fond of `:is()` because of the brevity and clarity, but if that's been decided against would a name like `:selector()` be a good replacement? Something like `:selector()` indicates to me that it would match a CSS selector, and when styled like a pseudo-class (`:()`) it can modify any part of a selector as well. Here are some examples so you can see what it might look like and how it reads in code:

a:selector(.active) { }

:selector(header, footer, nav) a { }

It's not explicit that it's ignoring specificity, but it seems less permanent, or less strong than if I had written the same selector directly. What do you think?

GitHub Notification of comment by tomhodgins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2143#issuecomment-404899728 using your GitHub account
Received on Friday, 13 July 2018 17:27:31 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:33 UTC