Bug 16705 - CSS3: head fails to match :not(:root)) (Acid3 bug)
Summary: CSS3: head fails to match :not(:root)) (Acid3 bug)
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Macintosh OS X 10.4
: P2 Normal
Assignee: Nobody
Keywords: NeedsReduction
Depends on:
Reported: 2008-01-01 22:19 PST by Eric Seidel (no email)
Modified: 2008-01-05 15:06 PST (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Eric Seidel (no email) 2008-01-01 22:19:17 PST
CSS3: head fails to match :not(:root)) (Acid3 bug)

    function () {
      // test 40: :root, :not()
      selectorTest(function (doc, add, expect) {
        var match = add(":not(:root)");
        var p = doc.createElement('p');
        expect(doc.documentElement, 0, "root was :not(:root)");
        expect(doc.documentElement.childNodes[0], 0, "head was not :not(:root)");
        expect(doc.documentElement.childNodes[1], 0, "body was not :not(:root)");
        expect(doc.documentElement.childNodes[0].firstChild, 0, "title was not :not(:root)");
        expect(p, 0, "p was not :not(:root)");
      return 3;

We'll need to make a nice stand-alone test case.
Comment 1 Anne van Kesteren 2008-01-03 01:16:35 PST
FYI: The test was invalid. The 0 should've been a 1. You might pass this one now.
Comment 2 Eric Seidel (no email) 2008-01-05 15:06:03 PST
I no longer see this in the Acid3 failures.