layout/reftests/bugs/315920-15.html

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

mercurial