diff options
Diffstat (limited to '')
8 files changed, 95 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 0000000000..80648da6fe --- /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 0000000000..fdd5bce514 --- /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 0000000000..f7cadc13ab --- /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 0000000000..1ab153bd2b --- /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 0000000000..77c3fbf702 --- /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 0000000000..ccc37dff41 --- /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.list b/layout/reftests/css-submit-invalid/default-style/reftest.list new file mode 100644 index 0000000000..93065dd323 --- /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 0000000000..93fd2e5976 --- /dev/null +++ b/layout/reftests/css-submit-invalid/default-style/style.css @@ -0,0 +1,2 @@ +.submit-invalid-ref { +} |