Bug 32695

Summary: Combination of CSS General Sibling Combinators and Dynamic Pseudo-Classes Fails
Product: WebKit Reporter: Kerrick Long <me>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WORKSFORME    
Severity: Minor CC: divya, mike, mjs
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
URL: http://www.kerrickdesign.com/playground/css-siblings.html
Attachments:
Description Flags
Reduced test case for checkboxes none

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.