summaryrefslogtreecommitdiffstats
path: root/layout/reftests/css-valid/input/style.css
diff options
context:
space:
mode:
Diffstat (limited to 'layout/reftests/css-valid/input/style.css')
-rw-r--r--layout/reftests/css-valid/input/style.css18
1 files changed, 18 insertions, 0 deletions
diff --git a/layout/reftests/css-valid/input/style.css b/layout/reftests/css-valid/input/style.css
new file mode 100644
index 000000000..81c09c3e2
--- /dev/null
+++ b/layout/reftests/css-valid/input/style.css
@@ -0,0 +1,18 @@
+/* Override default style */
+input:invalid {
+ box-shadow: none;
+}
+
+input.notvalid {
+ background-color: green;
+}
+input.notvalid:valid {
+ background-color: red;
+}
+
+input.valid {
+ background-color: red;
+}
+input.valid:valid {
+ background-color: green;
+}