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?

Specificity is not a number. You just can't divide it by a number. Making this work would require transforming the specificity into a potentially-infinite integer list (because by recursivity `a:matches(.foo:matches(#id))` should now beat `a:matches(.foo)` but not `a:matches(a.foo)` etc). 


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

Received on Wednesday, 27 September 2017 05:02:29 UTC