fieldset-nested-valid-invalid-ref.html 497 B

1234567891011121314151617181920212223
  1. <!DOCTYPE html>
  2. <!-- Nested fieldsets should be assigned validation correctly -->
  3. <html>
  4. <head>
  5. <style>
  6. fieldset:valid { background-color: green; }
  7. fieldset:invalid { background-color: red; }
  8. </style>
  9. </head>
  10. <body>
  11. <fieldset style="background-color:red;">
  12. <fieldset style="background-color: green;">
  13. <input>
  14. </fieldset>
  15. <fieldset style="background-color: red">
  16. <input required>
  17. </fieldset>
  18. </fieldset>
  19. </body>
  20. </html>