CSS 3 Module <== Test # ==>
W3C Selectors 176 of 176
Testing Date Revision
NEGATED :indeterminate with :checked (ID #d5e) 2001-11-27 1.0

NOTE: The UA must support ECMA-262 and DOM Level 2 Core for this test.

This checkbox should have a green background.

 input { background:red }
 input:not(:indeterminate):not(:checked) { background:green; }

 <div>

  <script>
   

    function test() {
      document.getElementById("test").checked = false;
    }

    window.setTimeout("test()", 100);
   
  </script>

  <p> <input id="test" type="checkbox" checked="checked"> This checkbox should have a green background. </p>

 </div>