I have the following example HTML:
<div class="a">
<div>
<ul class="b">
<li class="c">
<input id="123" type="checkbox" checked></input>
<label for="123">test</label>
</li>
<li class="c">
<input id="456" type="checkbox"></input>
<label for="456">test</label>
</li>
</ul>
</div>
</div>
And the following CSS:
.a {
text-decoration: line-through;
}
.a .b .c input[type="checkbox"]:not(:checked) + label {
text-decoration: none !important;
}
This can be found at this JS fiddle: https://jsfiddle.net/4q8a7yox/1/
I would like to remove the line-through from all labels for unchecked items. The weird thing is that Chrome console shows the 'computed' text-decoration as 'none', yet it still shows it. All browsers (IE10 and FF) fail in a similar way. Any idea what is going on here?