layout/reftests/css-default/submit-button/default-multiple-submit-1.html

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

     1 <!DOCTYPE html>
     2 <html>
     3   <style>
     4     input { color: green; }
     5     input.notdefault:default { color: red; }
     6     input.default:not(:default) { color: red; }
     7   </style>
     8   <body>
     9     <form id="one"></form>
    10     <input type="submit" form="one" class="default" id="test">
    11     <form id="two">
    12       <input type="submit" class="notdefault">
    13     </form>
    14     <script>
    15       document.body.offsetWidth;
    16       document.getElementById("test").setAttribute("form", "two");
    17     </script>
    18   </body>
    19 </html>

mercurial