Bug 108111

Summary: Hover pseudo-state doesn't affect children
Product: WebKit Reporter: Karen <karen+webkit>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: allan.jensen
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jsfiddle.net/d2V2K/

Karen
Reported 2013-01-28 13:43:25 PST
according to http://code.google.com/p/chromium/issues/detail?id=171867 copying content: Example URL: http://jsfiddle.net/d2V2K/ Steps to reproduce the problem: 1. Hover over divs 2. First a background is changed to blue, others are not What is the expected behavior? <a> background should change to blue when mouse is hovered over div What went wrong? Background color did not change. Adding a rule that modifies the div background color on hover seems to make this rule also work, e.g.: http://jsfiddle.net/j3TyM/ this broke right around: http://trac.webkit.org/changeset/136001
Attachments
Allan Sandfeld Jensen
Comment 1 2013-01-29 01:05:26 PST
Could this be a duplicate of bug #105672 ?
Allan Sandfeld Jensen
Comment 2 2013-01-29 02:20:21 PST
The issue is somewhat related to 105672, but not fixed by the patch posted there. What happens is that two cousin elements share style, but during styling they have the side effect of setting childrenAffectedBy bits on the parents. This would use to work since the parents were also sharing style, now the parents may have different childrenAffectedBy bits. The simplest solution may be to not allow cousin sharing when the parent elements have rare data.
Allan Sandfeld Jensen
Comment 3 2013-01-29 02:35:48 PST
*** This bug has been marked as a duplicate of bug 105672 ***
Note You need to log in before you can comment on or make changes to this bug.