summaryrefslogtreecommitdiffstats
path: root/layout/reftests/css-submit-invalid/input-image/dynamic-invalid.html
diff options
context:
space:
mode:
Diffstat (limited to 'layout/reftests/css-submit-invalid/input-image/dynamic-invalid.html')
-rw-r--r--layout/reftests/css-submit-invalid/input-image/dynamic-invalid.html22
1 files changed, 22 insertions, 0 deletions
diff --git a/layout/reftests/css-submit-invalid/input-image/dynamic-invalid.html b/layout/reftests/css-submit-invalid/input-image/dynamic-invalid.html
new file mode 100644
index 0000000000..e13a3f1ec6
--- /dev/null
+++ b/layout/reftests/css-submit-invalid/input-image/dynamic-invalid.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<html class='reftest-wait'>
+ <head>
+ <style>
+ :-moz-submit-invalid { display: none; }
+ :-moz-ui-invalid { box-shadow: none; }
+ </style>
+ </head>
+ <script>
+ function onloadHandler()
+ {
+ document.getElementById('i').value = '';
+ document.documentElement.className = '';
+ }
+ </script>
+ <body onload='onloadHandler();'>
+ <form>
+ <input id='i' value='foo' required>
+ <input type='image'>
+ </form>
+ </body>
+</html>