W3C home > Mailing lists > Public > public-css-archive@w3.org > February 2018

Re: [csswg-drafts] [selectors-4] reconsider specificity rule for :matches()

From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
Date: Wed, 07 Feb 2018 19:06:44 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-363875853-1518030403-sysbot+gh@w3.org>
So at first glance at the Chromium's code it seems that very few expansions are allowed:
https://chromium-review.googlesource.com/c/chromium/src/+/879982/15/third_party/WebKit/Source/core/css/CSSSelectorList.cpp#165

Effectively https://jsfiddle.net/u9q1ogc7/ demonstrates the failure. Text should be green.

I think `:matches` matching should not use expansion and the specificity should be fixed.



-- 
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1027#issuecomment-363875853 using your GitHub account
Received on Wednesday, 7 February 2018 19:07:29 UTC

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