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

> 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