[Webkit-unassigned] [Bug 62437] New: Adjacent sibling selector followed directly by nav selector without whitespace causes rule to be ignored
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Jun 10 00:45:33 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=62437
Summary: Adjacent sibling selector followed directly by nav
selector without whitespace causes rule to be ignored
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
OS/Version: All
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: CSS
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: martin.jansson at netrelations.se
Created an attachment (id=96706)
--> (https://bugs.webkit.org/attachment.cgi?id=96706&action=review)
Test case for selector bug
When a sibling selector is followed by a selector for the nav element without any whitespace inbetween them, like so:
div+nav{color:green;}
This causes some kind of parsing error and the complete rule is ignored. However, it seems as this is only the case when the element following the plus sign is of type nav, substitute it for another element selector and the rule works. It also works if you place whitespace to the right of the plus sign, but not if you place it to the left.
All of the above works in recent versions of Firefox (4.0.1), Opera (11.10) and IE (9)
>From W3C CSS2 Recommendation: "White space may appear between a combinator and the simple selectors around it."
--
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