Summary: | Adjacent sibling selector followed directly by nav selector without whitespace causes rule to be ignored | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Martin Jansson <martin.jansson> | ||||
Component: | CSS | Assignee: | Nobody <webkit-unassigned> | ||||
Status: | RESOLVED DUPLICATE | ||||||
Severity: | Normal | CC: | dominicc, mihnea | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
Attachments: |
|
Seems like a duplicate of https://bugs.webkit.org/show_bug.cgi?id=47971. (In reply to comment #1) > Seems like a duplicate of https://bugs.webkit.org/show_bug.cgi?id=47971. So it seems, yes. Sorry about that. Couldn't find it when I searched for similar bugs before reporting though. |
Created attachment 96706 [details] 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."