a:hover + span { background:yellow; }
a:hover > span { background:yellow; }
a:hover ~ span { background:yellow; }
The first two selectors work just fine. However, the third selector does not work?
Demo: http://jsfiddle.net/UAHw7/
Why?
Update: I fired up all my browsers ...
Opera 11 - Works
Safari 5 - Works
Firefox 3.6 - Works
IE9 RC - Works
Chrome 9 - Does not work
A Chrome issue then ...
:hover
pseudo-class. – Moiety:hover
which makes me think it's a bug or at least a bug-like phenomenon :) Edit: It even works in IE8. – Moiety