Bug 108111 - Hover pseudo-state doesn't affect children
Summary: Hover pseudo-state doesn't affect children
Status: RESOLVED DUPLICATE of bug 105672
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL: http://jsfiddle.net/d2V2K/
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-28 13:43 PST by Karen
Modified: 2013-01-29 02:35 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Karen 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
Comment 1 Allan Sandfeld Jensen 2013-01-29 01:05:26 PST
Could this be a duplicate of bug #105672 ?
Comment 2 Allan Sandfeld Jensen 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.
Comment 3 Allan Sandfeld Jensen 2013-01-29 02:35:48 PST

*** This bug has been marked as a duplicate of bug 105672 ***