layout/reftests/css-invalid/form/form-dynamic-invalid.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 <!-- form with one invalid element which is made invalid dynamically -->
     3 <html class='reftest-wait'>
     4   <head>
     5     <style>
     6       form:invalid { display: none; }
     7       :-moz-ui-invalid { box-shadow: none; }
     8     </style>
     9   </head>
    10   <script>
    11     function onloadHandler()
    12     {
    13       document.getElementById('i').value = '';
    14       document.documentElement.className = '';
    15     }
    16   </script>
    17   <body onload='onloadHandler();'>
    18     <form>
    19       <input id='i' value='foo' required>
    20     </form>
    21   </body>
    22 </html>

mercurial