layout/reftests/bugs/315920-25.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       span {color: red}
     6       input[type=submit]:not([disabled]):not(:disabled) ~ span {color: green}
     7       input[type=submit][disabled]:disabled + span {color: blue}
     8       input[type=text] + span {color: red}
     9       input { display: none }
    10     </style>
    11   </head>
    13   <body onload='document.getElementById("one").setAttribute("type", "submit");
    14                 document.getElementById("two").setAttribute("type", "submit");
    15                 document.getElementById("two").setAttribute("disabled", "disabled");
    16                 document.getElementById("one").removeAttribute("disabled");'>
    17     <input type="text" id="one" disabled="disabled"/>
    18     <span>Should be no red </span><br>
    19     <span>Should be no red </span><br>
    20     <input type="text" id="two"/>
    21     <span>Should be no red </span>
    22   </body>
    23 </html>

mercurial