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 ...
Note: As Chrome no longer contains this bug, this question is obsolete.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…