summaryrefslogtreecommitdiffstats
path: root/layout/reftests/css-valid/fieldset/fieldset-invalid.html
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--layout/reftests/css-valid/fieldset/fieldset-invalid.html13
1 files changed, 13 insertions, 0 deletions
diff --git a/layout/reftests/css-valid/fieldset/fieldset-invalid.html b/layout/reftests/css-valid/fieldset/fieldset-invalid.html
new file mode 100644
index 0000000000..139f4d4fa0
--- /dev/null
+++ b/layout/reftests/css-valid/fieldset/fieldset-invalid.html
@@ -0,0 +1,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>