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: fantasai via GitHub <sysbot+gh@w3.org>
Date: Tue, 16 Jan 2018 22:04:10 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-358122804-1516140250-sysbot+gh@w3.org>
> Should the :is() have specificity like :not()?

@Nadya678 `:matches()` behaves like `:not()`: it takes the specificity of its argument. The proposed `:is()`, which otherwise behaves exactly like `:matches()`, has a specificity of zero.

>  What specificity has :has()?

Good question. It looks like we forgot to define it when we switched from having a subject indicator to using `:has()` syntax. I've updated the Specificity section now--it has the specificity of its argument, just like `:matches()`.


-- 
GitHub Notification of comment by fantasai
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2143#issuecomment-358122804 using your GitHub account
Received on Tuesday, 16 January 2018 22:04:23 UTC

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