summaryrefslogtreecommitdiffstats
path: root/layout/reftests/css-submit-invalid/input-image/remove-form.html
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--layout/reftests/css-submit-invalid/input-image/remove-form.html23
1 files changed, 23 insertions, 0 deletions
diff --git a/layout/reftests/css-submit-invalid/input-image/remove-form.html b/layout/reftests/css-submit-invalid/input-image/remove-form.html
new file mode 100644
index 0000000000..628694b8af
--- /dev/null
+++ b/layout/reftests/css-submit-invalid/input-image/remove-form.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html class='reftest-wait'>
+ <head>
+ <style>
+ :-moz-submit-invalid { display: none; }
+ </style>
+ </head>
+ <script>
+ function onloadHandler()
+ {
+ document.getElementById('t').removeChild(document.forms[0]);
+ document.documentElement.className = '';
+ }
+ </script>
+ <body onload='onloadHandler();'>
+ <table id='t'>
+ <form>
+ <tr><td><input required></td></tr>
+ <tr><td><input type='image'></td></tr>
+ </form>
+ </table>
+ </body>
+</html>