blob: e57f5e67914b413da605cedfac49526fc258db31 [file] [log] [blame]
<csstest def=":indeterminate and :checked" module="W3C Selectors" modulename="css3-modsel" number="d5a" rev="1.1" date="20-october-2005" xmlns="http://www.example.org/css3tests">
<author>Tantek &#x00C7;elik</author>
<author>Ian Hickson</author>
<dynamic/>
<cssrules>
input, span { background: green; }
input:checked, input:checked + span { background: red; }
</cssrules>
<code>
<div xmlns="http://www.w3.org/1999/xhtml">
<script type="text/javascript">
<![CDATA[
function test() {
/* Technically not part of DOM1 HTML but Tantek assures me that
is an oversight... */
document.getElementById("test").indeterminate = true;
}
window.setTimeout("test()", 100);
]]>
</script>
<p> <input id="test" type="checkbox"/> <span>Everything in this paragraph should have a green background.</span> </p>
</div>
</code>
</csstest>