Bug 16705

Summary: CSS3: head fails to match :not(:root)) (Acid3 bug)
Product: WebKit Reporter: Eric Seidel (no email) <eric>
Component: CSSAssignee: Nobody <webkit-unassigned>
Severity: Normal CC: bdakin
Priority: P2 Keywords: NeedsReduction
Version: 528+ (Nightly build)   
Hardware: Macintosh   
OS: OS X 10.4   

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.