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: Brad Kemper via GitHub <sysbot+gh@w3.org>
Date: Tue, 26 Sep 2017 17:28:04 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-332273805-1506446872-sysbot+gh@w3.org>
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

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