summaryrefslogtreecommitdiffstats
path: root/layout/reftests/css-invalid/fieldset/fieldset-nested-valid-invalid.html
blob: 8f6973007723fc3b3544570cd01f738bcf39e5df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!DOCTYPE html>
<!-- Nested fieldsets should be assigned validation correctly -->
<html>
  <head>
    <style>
      fieldset:valid { background-color: green; }
      fieldset:invalid { background-color: red; }
    </style>
  </head>
  <body>
    <fieldset>
      <fieldset>
        <input>
      </fieldset>
      <fieldset>
        <input required>
      </fieldset>
    </fieldset>
  </body>
</html>