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

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

From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
Date: Wed, 03 Jan 2018 03:51:56 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-354932928-1514951515-sysbot+gh@w3.org>
Aliasing `:matches()` doesn't do much of value; the name as it stands is fine, so it's not worth adding yet another name for the same functionality. That just makes it harder to teach and understand.

Renaming `:matches()` is rude to the implementors at this point, and to the authors who've already learned it. We've had the function for a long time, implementors have begun implementing with it. If the name was truly bad or misleading we could *probably* rename it, but it's not - at worst, it's slightly annoying that `:is()` appears to be a slightly better antonym to `:not()` than `:matches()` is, so people new to the feature might get confused, but it's quick to learn which is which.  At this point in the feature's maturity, I don't think this justifies making a name change.



-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2143#issuecomment-354932928 using your GitHub account
Received on Wednesday, 3 January 2018 03:52:05 UTC

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