blob: b8114fabca6ee30af649290b8fe05dee92a88a2f [file] [log] [blame]
<csstest def="NEGATED :indeterminate and :checked" module="W3C Selectors" modulename="css3-modsel" number="d5b" rev="1.1" date="24-february-2005" xmlns="http://www.example.org/css3tests">
<author>Tantek &#x00C7;elik</author>
<author>Ian Hickson</author>
<dynamic/>
<cssrules>
input, span { background: red; }
input:not(:checked), input:not(:checked) + span { background: green; }
</cssrules>
<code>
<div xmlns="http://www.w3.org/1999/xhtml">
<script type="text/javascript">
<![CDATA[
function test() {
/* Microsoft specs for .indeterminate say that this is an invalid test
as an element can be both .checked and .indeterminate; however the
selectors spec says no element can be :checked:indeterminate. */
document.getElementById("test").indeterminate = true;
}
window.setTimeout("test()", 100);
]]>
</script>
<p> <input id="test" type="checkbox" checked="checked"/> <span>Everything in this paragraph should have a green background.</span> </p>
</div>
</code>
</csstest>