https://github.com/mozilla/gecko-dev
Raw File
Tip revision: 735e768d0b6231997d95cf9ecc43a1fb3c1faafc authored by ffxbld on 13 December 2011, 01:58:11 UTC
Added tag FENNEC_9_0b6_BUILD1 for changeset 541d40f07d00. CLOSED TREE a=release
Tip revision: 735e768
315920-22.html
<!DOCTYPE html>
<html>
  <head>
    <style>
      label {color: red}
      #one[disabled]:disabled + label {color: green}
      #two:not([disabled]):not(:disabled) + label {color: green}
    </style>
  </head>
  <body onload='var elem = document.getElementById("one");
                elem.setAttribute("disabled", "disabled");
                document.getElementById("two").removeAttribute("disabled")'>
    <div>
      <input id="one"/>
      <label for="one">Should be no red</label>
    </div>
    <div>
      <input id="two" disabled="disabled"/>
      <label for="two">Should be no red</label>
    </div>
  </body>
</html>
back to top