summaryrefslogtreecommitdiffstats
path: root/layout/reftests/css-submit-invalid/default-style/button-submit.html
diff options
context:
space:
mode:
Diffstat (limited to 'layout/reftests/css-submit-invalid/default-style/button-submit.html')
-rw-r--r--layout/reftests/css-submit-invalid/default-style/button-submit.html21
1 files changed, 21 insertions, 0 deletions
diff --git a/layout/reftests/css-submit-invalid/default-style/button-submit.html b/layout/reftests/css-submit-invalid/default-style/button-submit.html
new file mode 100644
index 000000000..fdd5bce51
--- /dev/null
+++ b/layout/reftests/css-submit-invalid/default-style/button-submit.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'>
+ <button type='submit'>Submit!</button>
+ </form>
+ </body>
+</html>