diff options
Diffstat (limited to 'layout/reftests/css-submit-invalid/button-submit/self-invalid.html')
-rw-r--r-- | layout/reftests/css-submit-invalid/button-submit/self-invalid.html | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/layout/reftests/css-submit-invalid/button-submit/self-invalid.html b/layout/reftests/css-submit-invalid/button-submit/self-invalid.html new file mode 100644 index 000000000..d52f598d0 --- /dev/null +++ b/layout/reftests/css-submit-invalid/button-submit/self-invalid.html @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<html class='reftest-wait'> + <head> + <style> + :invalid { display: none; } + </style> + </head> + <script> + function onloadHandler() + { + document.getElementById('b').setCustomValidity('foo'); + document.documentElement.className = ''; + } + </script> + <body onload='onloadHandler();'> + <form> + <button id='b' type='submit'></button> + </form> + </body> +</html> |