layout/reftests/bugs/315920-12a.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/bugs/315920-12a.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,19 @@
     1.4 +<!DOCTYPE html>
     1.5 +<html>
     1.6 +  <head>
     1.7 +    <style>
     1.8 +      label {color: red}
     1.9 +      input:default + label {color: green}
    1.10 +      input:not(:checked):not([checked]):not(:default) + label {color:green}
    1.11 +    </style>
    1.12 +  </head>
    1.13 +  <body onload='document.getElementById("one").setAttribute("checked", "true");
    1.14 +                document.getElementById("two").removeAttribute("checked");'>
    1.15 +    <form>
    1.16 +      <input type="checkbox" name="group1" id="one" value="1"/>
    1.17 +      <label id="l1" for="one">Should be no red</label><br>
    1.18 +      <input type="checkbox" name="group1" id="two" value="2" checked="true"/>
    1.19 +      <label id="l2" for="two">Should be no red</label>
    1.20 +    </form>
    1.21 +  </body>
    1.22 +</html>

mercurial