summaryrefslogtreecommitdiffstats
path: root/layout/reftests/css-valid/fieldset/fieldset-invalid.html
blob: 139f4d4fa04b0f8507c74e04006bd4ad9dab8f66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<!DOCTYPE html>
<html class="reftest-wait">
  <!-- Test: fieldset undergoes constraint validation.
             It should be affected by :invalid pseudo-class. -->
  <style>
    fieldset:invalid { display: none; }
  </style>
  <body onload="document.getElementById('f').setCustomValidity('foo'); document.documentElement.className='';">
    <fieldset>
      <input id='f'>
    </fieldset>
  </body>
</html>