summaryrefslogtreecommitdiffstats
path: root/layout/reftests/bugs/315920-19.html
blob: efa3c2e54557168eab7e23ecff207d8d3913f363 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE html>
<html>
  <head>
    <style>
      span {color: red}
      label {color: red}
      input[disabled]:disabled ~ span {color: green}
      input[disabled]:disabled + label {color: green}
      input { display: none; }
    </style>
  </head>
  <body onload='var i1 = document.getElementById("ffximage");
                i1.setAttribute("disabled", "disabled");'>
    <input type="image" id="ffximage"/>
    <label for="ffximage">Should be no red</label>
    <br>
    <span>Should be no red</span>
  </body>
</html