layout/reftests/css-invalid/form/form-add-invalid-with-valid-element.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/css-invalid/form/form-add-invalid-with-valid-element.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,22 @@
     1.4 +<!DOCTYPE html>
     1.5 +<!--form with one valid element and invalid one is added dynamically -->
     1.6 +<html class='reftest-wait'>
     1.7 +  <head>
     1.8 +    <style>
     1.9 +      form:invalid { display: none; }
    1.10 +    </style>
    1.11 +  </head>
    1.12 +  <script>
    1.13 +    function onloadHandler()
    1.14 +    {
    1.15 +      document.forms[0].appendChild(document.getElementById('i'));
    1.16 +      document.documentElement.className = '';
    1.17 +    }
    1.18 +  </script>
    1.19 +  <body onload='onloadHandler();'>
    1.20 +    <input id='i' type='email' value='bar'>
    1.21 +    <form>
    1.22 +      <input id='j' type='text' value='foo'>
    1.23 +    </form>
    1.24 +  </body>
    1.25 +</html>

mercurial