Bug 108111
| Summary: | Hover pseudo-state doesn't affect children | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Karen <karen+webkit> |
| Component: | CSS | Assignee: | 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
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Allan Sandfeld Jensen
Could this be a duplicate of bug #105672 ?
Allan Sandfeld Jensen
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
*** This bug has been marked as a duplicate of bug 105672 ***