Bug 56994 - :not should accept "a comma-separated list of compound selectors"
Summary: :not should accept "a comma-separated list of compound selectors"
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-23 21:14 PDT by Ojan Vafai
Modified: 2014-11-01 10:42 PDT (History)
8 users (show)

See Also:


Attachments
Patch (29.17 KB, patch)
2011-03-25 00:27 PDT, Ojan Vafai
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ojan Vafai 2011-03-23 21:14:12 PDT
http://dev.w3.org/csswg/selectors4/#negation

This does mean we'll fail http://samples.msdn.microsoft.com/ietestcenter/css3/selectors/notSelectorSequence.htm, but I think it's better that we match the better behavior of the Selectors 4 spec. I'll try and find someone at Microsoft to see if they're willing to change the test.
Comment 1 Ojan Vafai 2011-03-25 00:27:01 PDT
Created attachment 86903 [details]
Patch
Comment 2 Ojan Vafai 2011-03-25 00:27:50 PDT
I've emailed Resig and MS to see if they're willing to change their tests to match the new spec.
Comment 3 Eric Seidel (no email) 2011-05-23 14:50:24 PDT
Any update?  It's been about a month.
Comment 4 Adam Barth 2011-10-14 17:22:00 PDT
Comment on attachment 86903 [details]
Patch

Please re-nominate when you hear back from John.
Comment 5 Ojan Vafai 2012-01-05 17:01:19 PST
The Resig test suite appears to also live at http://dev.w3.org/2006/webapi/selectors-api-testsuite/, which covers selectors levels 2.1 and 3. And it's not clear who maintains it.

This is changed in http://dev.w3.org/csswg/selectors4/, which does not have a test suite yet.

Is anyone opposed to me committing this without getting this test suite updated since it's testing selectors 3 and the API change this implements is part of selectors 4 given that I can't get responses from Resig or MS?
Comment 6 Benjamin Poulain 2014-11-01 10:42:12 PDT
WebKit supports :not() of Level 4.