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

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

mercurial