summaryrefslogtreecommitdiffstats
path: root/layout/reftests/css-invalid/fieldset/fieldset-nested-valid-invalid-ref.html
blob: 4f8e399b6be18d07c24b3168c8faa245be122f56 (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>
<!-- Nested fieldsets should be assigned validation correctly -->
<html>
  <head>
    <style>
      fieldset:valid { background-color: green; }
      fieldset:invalid { background-color: red; }
    </style>
  </head>
  <body>
    <fieldset style="background-color:red;">
      <fieldset style="background-color: green;">
        <input>
      </fieldset>
      <fieldset style="background-color: red">
        <input required>
      </fieldset>
    </fieldset>
  </body>
</html>