layout/reftests/bugs/315920-25.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/bugs/315920-25.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,23 @@
     1.4 +<!DOCTYPE html>
     1.5 +<html>
     1.6 +  <head>
     1.7 +    <style>
     1.8 +      span {color: red}
     1.9 +      input[type=submit]:not([disabled]):not(:disabled) ~ span {color: green}
    1.10 +      input[type=submit][disabled]:disabled + span {color: blue}
    1.11 +      input[type=text] + span {color: red}
    1.12 +      input { display: none }
    1.13 +    </style>
    1.14 +  </head>
    1.15 +
    1.16 +  <body onload='document.getElementById("one").setAttribute("type", "submit");
    1.17 +                document.getElementById("two").setAttribute("type", "submit");
    1.18 +                document.getElementById("two").setAttribute("disabled", "disabled");
    1.19 +                document.getElementById("one").removeAttribute("disabled");'>
    1.20 +    <input type="text" id="one" disabled="disabled"/>
    1.21 +    <span>Should be no red </span><br>
    1.22 +    <span>Should be no red </span><br>
    1.23 +    <input type="text" id="two"/>
    1.24 +    <span>Should be no red </span>
    1.25 +  </body>
    1.26 +</html>

mercurial