Safari and Chrome, as well as Opera and Firefox, can handle the :hover
pseudo-class and adjacent-sibling selectors:
a:hover + div {}
This works.
However, when another adjacent-sibling is added:
div:hover + a + div {}
Webkit falls apart.
However, if you first hover over <a>
and then hover over the <div>
the style is applied as it ought to.
I'm further confounded, because if you add:
div:hover ~ div {}
with or without a style declared, it starts working as it ought to.
I see this problem in:
- Google Chrome 15.0.874.121
- Safari 5.1.1
for OS X.
Any ideas?
:hover
ed one and its parents aren't updated. Nothing you can do about it, I'm afraid. – Nonproductive