layout/reftests/css-invalid/fieldset/fieldset-dynamic-valid.html

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 <!DOCTYPE html>
     2 <!--  fieldset with one valid element which is made valid dynamically -->
     3 <html>
     4   <head>
     5     <style>
     6       fieldset:valid {display: none;}
     7     </style>
     8   </head>
     9   <script>
    10     function onloadHandler()
    11     {
    12       document.getElementById('i').value = 'foo';
    13       document.documentElement.className = '';
    14     }
    15   </script>
    16   <body onload="onloadHandler();">
    17     <fieldset id="fieldset">
    18       <input id='i' required>
    19     </fieldset>
    20   </body>
    21 </html>

mercurial