Bug 40466
Summary: | "span:hover + img + p" does not match the elements it's supposed to | ||
---|---|---|---|
Product: | WebKit | Reporter: | Magne Andersson <bugzilla> |
Component: | CSS | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED WORKSFORME | ||
Severity: | Major | CC: | bfulgham, bugzilla |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | All | ||
OS: | All |
Magne Andersson
While experimenting with my site, I found that "span:hover + img + p" does not match the elements it's supposed to. I had the following CSS (simplified):
img + p {
color: rgba(0, 0, 0, 0);
}
span:hover + img + p {
color: rgba(255, 255, 255, 0.3);
}
And the following HTML:
<span>Magne Andersson</span><img src="me.jpg" height="240" width="320"><p>That's me</p>
This works in Firefox and Opera, but not in Webkit-based browsers (including the latest nightly).
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Brent Fulgham
Please provide a test case if you continue to see a problem.