mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-16 23:05:42 +00:00
52824c3d8a
This adds a CSS psuedo class to fieldset that acts much in the same way as the one on form.
22 lines
403 B
HTML
22 lines
403 B
HTML
<!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>
|
|
|