summaryrefslogtreecommitdiffstats
path: root/layout/reftests/css-ui-valid/input/input-type-invalid.html
blob: b3e342aab9989ba7a61a2b8b1e2807158759effc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!DOCTYPE html>
<html class="reftest-wait">
  <!-- Test: if an input has a custom error when barred from constraint
             validation then move a type candidate for constraint validation,
             it should not be affected by :-moz-ui-valid pseudo-class. -->
  <link rel='stylesheet' type='text/css' href='style.css'>
  <script>
    function doTest()
    {
      var i = document.getElementById('i');
      i.setCustomValidity('foo');
      i.type = 'text';
      document.documentElement.className='';
    }
    document.addEventListener("MozReftestInvalidate", doTest);
  </script>
  <body>
    <input class='notvalid' type='button' id='i'>
  </body>
</html>