Bug 41206 - Specificity of negated selectors apparently miscalculated
Summary: Specificity of negated selectors apparently miscalculated
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.6
: P2 Normal
Assignee: Nobody
URL: http://disruptive-innovations.com/zoo...
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-25 03:36 PDT by Daniel Glazman
Modified: 2011-01-10 05:52 PST (History)
5 users (show)

See Also:


Attachments
Patch. (9.02 KB, patch)
2011-01-08 11:46 PST, Yael
simon.fraser: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Glazman 2010-06-25 03:36:23 PDT
Tested with trunk - Version 5.0 (6533.16, r61783)
The test at http://disruptive-innovations.com/zoo/csswg/specificity-test.html
should show a green background and not a red one. Too high specificity for
:not() ?
Comment 1 Yael 2011-01-08 11:46:04 PST
Created attachment 78324 [details]
Patch.

Give negated selectors the specificity of the selector they are negating.
Comment 2 Yael 2011-01-09 13:53:22 PST
(In reply to comment #1)
> Created an attachment (id=78324) [details]
> Patch.
> 
> Give negated selectors the specificity of the selector they are negating.

Based on http://www.w3.org/TR/css3-selectors/#specificity.
Comment 3 Yael 2011-01-10 05:52:02 PST
Committed 75369. <http://trac.webkit.org/changeset/75369>.