layout/reftests/bugs/315920-10.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[checked]:checked ~ label {color: green}
     7       input[checked]:checked:not(:default) + label {color: red}
     8     </style>
     9   </head>
    10   <body onload='var e1 = document.getElementById("one");
    11                 var l1 = document.getElementById("l1");
    12                 e1.parentNode.removeChild(e1);
    13                 l1.parentNode.removeChild(l1);
    14                 document.getElementById("two").setAttribute("checked", "true");'>
    15     <form>
    16       <input type="radio" name="group1" id="one" value="1" default="true" checked/>
    17       <label id="l1" for="one">Should be no red</label><br>
    18       <input type="radio" name="group1" id="two" value="2"/>
    19       <label for="two">Should be no red</label>
    20       <input type="radio" name="group1" id="three" value="3"/>
    21       <label for="three">Should be no red</label>
    22     </form>
    23   </body>
    24 </html>

mercurial