summaryrefslogtreecommitdiffstats
path: root/layout/reftests/css-submit-invalid/default-style
diff options
context:
space:
mode:
Diffstat (limited to 'layout/reftests/css-submit-invalid/default-style')
-rw-r--r--layout/reftests/css-submit-invalid/default-style/button-submit-ref.html9
-rw-r--r--layout/reftests/css-submit-invalid/default-style/button-submit.html21
-rw-r--r--layout/reftests/css-submit-invalid/default-style/input-image-ref.html9
-rw-r--r--layout/reftests/css-submit-invalid/default-style/input-image.html21
-rw-r--r--layout/reftests/css-submit-invalid/default-style/input-submit-ref.html9
-rw-r--r--layout/reftests/css-submit-invalid/default-style/input-submit.html21
-rw-r--r--layout/reftests/css-submit-invalid/default-style/reftest-stylo.list4
-rw-r--r--layout/reftests/css-submit-invalid/default-style/reftest.list3
-rw-r--r--layout/reftests/css-submit-invalid/default-style/style.css2
9 files changed, 99 insertions, 0 deletions
diff --git a/layout/reftests/css-submit-invalid/default-style/button-submit-ref.html b/layout/reftests/css-submit-invalid/default-style/button-submit-ref.html
new file mode 100644
index 000000000..80648da6f
--- /dev/null
+++ b/layout/reftests/css-submit-invalid/default-style/button-submit-ref.html
@@ -0,0 +1,9 @@
+<!DOCTYPE>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <form>
+ <button type='submit' class='submit-invalid-ref'>Submit!</button>
+ </form>
+ </body>
+</html>
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>
diff --git a/layout/reftests/css-submit-invalid/default-style/input-image-ref.html b/layout/reftests/css-submit-invalid/default-style/input-image-ref.html
new file mode 100644
index 000000000..f7cadc13a
--- /dev/null
+++ b/layout/reftests/css-submit-invalid/default-style/input-image-ref.html
@@ -0,0 +1,9 @@
+<!DOCTYPE>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <form>
+ <input type='image' class='submit-invalid-ref'>
+ </form>
+ </body>
+</html>
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>
diff --git a/layout/reftests/css-submit-invalid/default-style/input-submit-ref.html b/layout/reftests/css-submit-invalid/default-style/input-submit-ref.html
new file mode 100644
index 000000000..77c3fbf70
--- /dev/null
+++ b/layout/reftests/css-submit-invalid/default-style/input-submit-ref.html
@@ -0,0 +1,9 @@
+<!DOCTYPE>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <form>
+ <input type='submit' class='submit-invalid-ref'>
+ </form>
+ </body>
+</html>
diff --git a/layout/reftests/css-submit-invalid/default-style/input-submit.html b/layout/reftests/css-submit-invalid/default-style/input-submit.html
new file mode 100644
index 000000000..ccc37dff4
--- /dev/null
+++ b/layout/reftests/css-submit-invalid/default-style/input-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'>
+ <input type='submit'>
+ </form>
+ </body>
+</html>
diff --git a/layout/reftests/css-submit-invalid/default-style/reftest-stylo.list b/layout/reftests/css-submit-invalid/default-style/reftest-stylo.list
new file mode 100644
index 000000000..49b10e400
--- /dev/null
+++ b/layout/reftests/css-submit-invalid/default-style/reftest-stylo.list
@@ -0,0 +1,4 @@
+# DO NOT EDIT! This is a auto-generated temporary list for Stylo testing
+== input-submit.html input-submit.html
+== input-image.html input-image.html
+== button-submit.html button-submit.html
diff --git a/layout/reftests/css-submit-invalid/default-style/reftest.list b/layout/reftests/css-submit-invalid/default-style/reftest.list
new file mode 100644
index 000000000..93065dd32
--- /dev/null
+++ b/layout/reftests/css-submit-invalid/default-style/reftest.list
@@ -0,0 +1,3 @@
+== input-submit.html input-submit-ref.html
+== input-image.html input-image-ref.html
+== button-submit.html button-submit-ref.html
diff --git a/layout/reftests/css-submit-invalid/default-style/style.css b/layout/reftests/css-submit-invalid/default-style/style.css
new file mode 100644
index 000000000..93fd2e597
--- /dev/null
+++ b/layout/reftests/css-submit-invalid/default-style/style.css
@@ -0,0 +1,2 @@
+.submit-invalid-ref {
+}