summaryrefslogtreecommitdiffstats
path: root/layout/reftests/css-required/css-required-style-2.css
diff options
context:
space:
mode:
Diffstat (limited to 'layout/reftests/css-required/css-required-style-2.css')
-rw-r--r--layout/reftests/css-required/css-required-style-2.css13
1 files changed, 13 insertions, 0 deletions
diff --git a/layout/reftests/css-required/css-required-style-2.css b/layout/reftests/css-required/css-required-style-2.css
new file mode 100644
index 0000000000..0670fb48e7
--- /dev/null
+++ b/layout/reftests/css-required/css-required-style-2.css
@@ -0,0 +1,13 @@
+input, textarea, select, button,
+*:optional {
+ visibility: hidden;
+}
+
+input[required]:required {
+ visibility: visible;
+}
+
+/* Override the default style. */
+:invalid {
+ box-shadow: none;
+}