| CSS 3 Module | <== Test # ==> | |
|---|---|---|
| W3C Selectors | 10 of 10 of the dynamic tests category | |
| Testing | Date | Revision | 
| NEGATED :indeterminate with :checked (ID #d5e) | 2005-02-24 | 1.1 | 
NOTE: The UA must support ECMA-262 and DOM Level 2 Core for this test.
Everything in this paragraph should have a green background.
 input, span { background:red }
 input:not(:indeterminate):not(:checked), input:not(:indeterminate):not(:checked) + span { background:green; }
   
 <div>
  <script type="text/javascript">
   
    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>