[Webkit-unassigned] [Bug 62520] A type selector within negation should have a specificity of 0:1:0

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Jun 12 23:16:04 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=62520





--- Comment #1 from Alan Gresley <alan at css-class.com>  2011-06-12 23:16:04 PST ---
(In reply to comment #0)
> Always reproduce-able. Simple setup.
> 
> <!doctype html>
> 
> <style type="text/css">
> body {color: white;}
> body :not([foo]) {background: green;}
> body :not(bar) {background: red;}
> </style>
> 
> <p>This paragraph should have a green background.</div>
> 
> The paragraph should have a green background since :not([foo]) has a specificity of 0:1:1 where :not(foo) should have a specificity of 0:0:1.

:not([foo]) has a specificity of 0:1:0.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list