| CSS 3 Module | <== Test # ==> | |
|---|---|---|
| W3C Selectors | 162 of 166 | |
| Testing | Date | Revision | 
| :indeterminate and :checked (ID #d5a) | 27-november-2001 | 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: green; }
 input:checked { background: red; }
   
 <div>
  <script>
   
    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"> This checkbox should have a green background. </p>
 </div>