layout/reftests/bugs/315920-22.html

Thu, 15 Jan 2015 15:55:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:55:04 +0100
branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
permissions
-rw-r--r--

Back out 97036ab72558 which inappropriately compared turds to third parties.

     1 <!DOCTYPE html>
     2 <html>
     3   <head>
     4     <style>
     5       label {color: red}
     6       #one[disabled]:disabled + label {color: green}
     7       #two:not([disabled]):not(:disabled) + label {color: green}
     8     </style>
     9   </head>
    10   <body onload='var elem = document.getElementById("one");
    11                 elem.setAttribute("disabled", "disabled");
    12                 document.getElementById("two").removeAttribute("disabled")'>
    13     <div>
    14       <input id="one"/>
    15       <label for="one">Should be no red</label>
    16     </div>
    17     <div>
    18       <input id="two" disabled="disabled"/>
    19       <label for="two">Should be no red</label>
    20     </div>
    21   </body>
    22 </html>

mercurial