[Webkit-unassigned] [Bug 32701] New: Adjacent selector initialy only working on first adjacent element

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Dec 18 00:30:32 PST 2009


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

           Summary: Adjacent selector initialy only working on first
                    adjacent element
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh Intel
               URL: http://play.philipefatio.com/bug.html
        OS/Version: Mac OS X 10.6
            Status: UNCONFIRMED
          Severity: Major
          Priority: P2
         Component: CSS
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: philipe.fatio at gmail.com


Created an attachment (id=45129)
 --> (https://bugs.webkit.org/attachment.cgi?id=45129)
testcase

The following selector is only being applied to the first dd element.
See URL or attachment.
The class "open" is being toggled upon click by JS.

dt.collapsable:not(.open) + dd,
dt.collapsable:not(.open) + dd + dd,
dt.collapsable:not(.open) + dd + dd + dd,
dt.collapsable:not(.open) + dd + dd + dd + dd
{
display: none;
}

When changing the class of a dd that should be hidden, all other suddenly hide.
Same thing in reverse order, when all were hidden and they should reappear,
only the first one shows.

This is the case in Safari and in the newest nightly

-- 
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