Bug 32695 - Combination of CSS General Sibling Combinators and Dynamic Pseudo-Classes Fails
Summary: Combination of CSS General Sibling Combinators and Dynamic Pseudo-Classes Fails
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Minor
Assignee: Nobody
URL: http://www.kerrickdesign.com/playgrou...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-17 20:09 PST by Kerrick Long
Modified: 2012-05-16 12:01 PDT (History)
3 users (show)

See Also:


Attachments
Reduced test case for checkboxes (521 bytes, text/html)
2010-03-21 08:43 PDT, Konstantin Käfer
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kerrick Long 2009-12-17 20:09:55 PST
URL: http://www.kerrickdesign.com/playground/css-siblings.html
Other browsers tested: Firefox 3.5, Chrome 4, Internet Explorer 7/8, Opera 
10
  Add OK or FAIL after other browsers where you have tested this issue:
     Chrome 4: FAIL
  Firefox 3.x: OK
         IE 7: OK-ish
         IE 8: OK-ish

What steps will reproduce the problem?
1. Visit the web page indicated
2. Hover over the left controls
3. See the left light not change

What is the expected result?
The light on the left should behave the same as the light on the right. It 
should turn yellow on hover and green on click of the controls.

What happens instead?
The light stays red when using CSS General Sibling Combinators in addition 
with Dynamic Pseudo-classes

Please provide any additional information below.
General Sibling Combinator specs: http://www.w3.org/TR/css3-selectors/#general-sibling-combinators
Dynamic Pseudo-class specs: 
http://www.w3.org/TR/CSS2/selector.html#dynamic-pseudo-classes
Comment 1 Konstantin Käfer 2010-03-21 08:43:59 PDT
Created attachment 51247 [details]
Reduced test case for checkboxes

The sibling selector also fails for the :checked pseudo selector. As you can see, it works when loading but doesn't update when the pseudo selector state changes: Clicking doesn't remove or add the red background color in WebKit.
Comment 2 Maciej Stachowiak 2012-05-16 12:01:45 PDT
This seems to work ok in current WebKit.