Bug 88219 - Chaining multiple adjacent sibling combinators after the :target pseudo-class fails
Summary: Chaining multiple adjacent sibling combinators after the :target pseudo-class...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-04 02:06 PDT by Philippe Wittenbergh
Modified: 2014-11-02 16:27 PST (History)
1 user (show)

See Also:


Attachments
test case (971 bytes, text/html)
2012-06-04 02:06 PDT, Philippe Wittenbergh
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe Wittenbergh 2012-06-04 02:06:04 PDT
Created attachment 145545 [details]
test case

The following type of selector fails in Webkit r119365, Safari 5.1, Chrome 19 (and older in both cases):
E:target + #some-id + #some-other-id { /* something */ }

In the test case: at the bottom of the page is a green block; when clicking the link ('link to addendum'), that block should: 1/ change background-color 2/ change width.

This works in all other browsers.

But chaining only one adj. sibling after the :target works.
E:target + #some-id {}
Comment 1 Philippe Wittenbergh 2014-11-02 16:27:46 PST
Testing with r175461, this now works thanks to the work alluded to by B. Poulain in bug 12520. Marking as fixed.