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

It seems to me that some specificity within the function would be desirable. What if it was 1/1000 (or less) the strength of what is would be if it was outside the function?

So, for instance, `.foo:matches(a)` would have more specificity than `.foo`, but less than `a.foo`. And `.foo:matches(a#bar)` would have more specificity than `.foo:matches(a)`, but still wouldn’t beat `.foo`. Wouldn’t that give us the best of all worlds?

-- 
GitHub Notification of comment by bradkemper
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1170#issuecomment-332273805 using your GitHub account

Received on Tuesday, 26 September 2017 17:27:55 UTC