Consider the following (Fiddle found here http://jsfiddle.net/burninromz/YDuzC/8/ )
What happens when you check the box, the corresponding label will appear. This does not work in Safari and Chrome, but in IE, Firefox and Opera. When you check elements for both chrome and safari, you see that the style actually applies to the element, but does not display correctly. Any ideas why this is?
See below.
html
<div> <input type="checkbox"></input> <span>Unchecked</span> <span>Unchecked</span>
CSS
input[type="checkbox"]:checked + span { display:none } input[type="checkbox"] + span { display:block } input[type="checkbox"]:checked + span + span { display:block } input[type="checkbox"] + span + span { display:none }
This selector does not work
input[type="checkbox"]:checked + span + span { display:block }
source share