summaryrefslogtreecommitdiffstats
path: root/layout/reftests/css-invalid/fieldset/fieldset-add-invalid-barred.html
blob: 74150b303ecfa5b5e59f90f4892543d1a5062a7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<!-- fieldset with invalid barred for constraint validation element -->
<html>
  <head>
    <style>
      fieldset:valid { display: none ;}
    </style>
    <script>
      function onloadHandler()
      {
        document.getElementById("fieldset").appendChild(document.getElementById('i'));
        document.documentElement.className = '';
      }
    </script>
  </head>
  <body onload="onloadHandler();">
    <input required readonly id="i">
    <fieldset id="fieldset">
    </fieldset>
  </body>
</html>