layout/reftests/bugs/315920-25.html

Wed, 31 Dec 2014 07:16:47 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:16:47 +0100
branch
TOR_BUG_9701
changeset 3
141e0f1194b1
permissions
-rw-r--r--

Revert simplistic fix pending revisit of Mozilla integration attempt.

     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