W3C home > Mailing lists > Public > public-css-archive@w3.org > September 2017

Re: [csswg-drafts] [selectors] Functional pseudo-class like :matches() with 0 specificity

From: Oliver Boermans via GitHub <sysbot+gh@w3.org>
Date: Tue, 26 Sep 2017 11:18:28 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-332167016-1506424695-sysbot+gh@w3.org>
>works exactly like :matches() but with zero specificity

This would be magically useful!

>Suggest naming this :is

The terseness of `:is()` gets my vote. 

Although, considering:

>every selector is an "is" filter already

Presuming there are _reasons_ why `:()` is not an option?

I guess it would be more difficult to talk about without an explicit nameā€¦

GitHub Notification of comment by ollicle
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1170#issuecomment-332167016 using your GitHub account
Received on Tuesday, 26 September 2017 11:18:23 UTC

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