summaryrefslogtreecommitdiffstats
path: root/layout/reftests/css-submit-invalid/default-style/input-image.html
diff options
context:
space:
mode:
Diffstat (limited to 'layout/reftests/css-submit-invalid/default-style/input-image.html')
-rw-r--r--layout/reftests/css-submit-invalid/default-style/input-image.html21
1 files changed, 21 insertions, 0 deletions
diff --git a/layout/reftests/css-submit-invalid/default-style/input-image.html b/layout/reftests/css-submit-invalid/default-style/input-image.html
new file mode 100644
index 000000000..1ab153bd2
--- /dev/null
+++ b/layout/reftests/css-submit-invalid/default-style/input-image.html
@@ -0,0 +1,21 @@
+<!DOCTYPE>
+<html class="reftest-wait">
+ <style>
+ input:invalid {
+ display: none;
+ }
+ </style>
+ <script>
+ function onloadHandler()
+ {
+ document.getElementById('e').setCustomValidity('foo');
+ document.documentElement.className='';
+ }
+ </script>
+ <body onload="onloadHandler();">
+ <form>
+ <input id='e'>
+ <input type='image'>
+ </form>
+ </body>
+</html>