layout/reftests/bugs/315920-3c.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/bugs/315920-3c.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,16 @@
     1.4 +<!DOCTYPE html>
     1.5 +<html>
     1.6 +  <head>
     1.7 +    <style>
     1.8 +      input {color: red}
     1.9 +      #two { color: green }
    1.10 +      input[disabled]:not(:enabled) {color: green}
    1.11 +      input:not([disabled]):enabled + #two:enabled {color: red}
    1.12 +    </style>
    1.13 +  </head>
    1.14 +  <body onload='var elem = document.getElementById("one");
    1.15 +                elem.setAttribute("disabled", "disabled");'>
    1.16 +    <input type="button" id="one" value="Should be no red"/>
    1.17 +    <input type="button" id="two" value="Should be no red"/>
    1.18 +  </body>
    1.19 +</html>

mercurial