mirror of
https://github.com/servo/servo.git
synced 2025-10-16 00:10:23 +01:00
33 lines
845 B
Text
33 lines
845 B
Text
<csstest def="NEGATED :indeterminate with :checked" module="W3C Selectors" modulename="css3-modsel" number="d5e" rev="1.2" date="20-october-2005" xmlns="http://www.example.org/css3tests">
|
|
|
|
<author>Tantek Çelik</author>
|
|
<author>Ian Hickson</author>
|
|
|
|
<dynamic/>
|
|
|
|
<cssrules>
|
|
input, span { background:red }
|
|
input:not(:indeterminate):not(:checked), input:not(:indeterminate):not(:checked) + span { background:green; }
|
|
</cssrules>
|
|
|
|
<code>
|
|
|
|
<div xmlns="http://www.w3.org/1999/xhtml">
|
|
|
|
<script type="text/javascript">
|
|
<![CDATA[
|
|
|
|
function test() {
|
|
document.getElementById("test").checked = false;
|
|
}
|
|
|
|
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>
|