layout/reftests/bugs/315920-17.html

Wed, 31 Dec 2014 07:16:47 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:16:47 +0100
branch
TOR_BUG_9701
changeset 3
141e0f1194b1
permissions
-rw-r--r--

Revert simplistic fix pending revisit of Mozilla integration attempt.

     1 <!DOCTYPE html>
     2 <html>
     3   <head>
     4     <style>
     5       input ~ label {color: red}
     6       input:not(:default):not(:checked):not([checked]) ~ label {color:red}
     7       input[checked]:checked:default ~ input:not(:checked):not([checked]):not(:default) + label {color: green}
     8       input:checked:default + label {color: green}
     9     </style>
    10   </head>
    11   <body onload='document.getElementById("two").setAttribute("checked", "true");
    12                 document.getElementById("one").setAttribute("checked", "checked");
    13                 document.getElementById("two").removeAttribute("checked");'>
    14     <form>
    15       <input type="checkbox" name="group1" id="one" value="1"/>
    16       <label for="one">Should be no red</label><br>
    17       <input type="checkbox" name="group1" id="two" value="2"/>
    18       <label for="two">Should be no red</label><br>
    19       <input type="checkbox" name="group1" id="three" value="3"/>
    20       <label for="three">Should be no red</label>
    21     </form>
    22   </body>
    23 </html>

mercurial