layout/reftests/css-invalid/form/form-add-invalid-with-valid-element.html
author dadaa <daisuke.akatsuka@birchill.co.jp>
Wed, 09 Jul 2025 04:53:58 +0000 (7 hours ago)
changeset 795836 a5500d271fe3a1fefb4d81d96fc4abd00d9eade7
parent 86333 7fa9d642fe74ef563ab428b171ade21d1a683003
permissions -rw-r--r--
Bug 1957280: Limit user's mouse amount for tree component r=places-reviewers,reusable-components-reviewers,masayuki,mstriemer Differential Revision: https://phabricator.services.mozilla.com/D251224
<!DOCTYPE html>
<!--form with one valid element and invalid one is added dynamically -->
<html class='reftest-wait'>
  <head>
    <style>
      form:invalid { display: none; }
    </style>
  </head>
  <script>
    function onloadHandler()
    {
      document.forms[0].appendChild(document.getElementById('i'));
      document.documentElement.className = '';
    }
  </script>
  <body onload='onloadHandler();'>
    <input id='i' type='email' value='bar'>
    <form>
      <input id='j' type='text' value='foo'>
    </form>
  </body>
</html>