Bug 16705 - CSS3: head fails to match :not(:root)) (Acid3 bug)
Summary: CSS3: head fails to match :not(:root)) (Acid3 bug)
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Nobody
URL:
Keywords: NeedsReduction
Depends on:
Blocks:
 
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:


Attachments

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');
        doc.body.appendChild(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.