diff options
Diffstat (limited to '')
-rw-r--r-- | layout/reftests/css-invalid/fieldset/fieldset-remove-invalid-element.html | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/layout/reftests/css-invalid/fieldset/fieldset-remove-invalid-element.html b/layout/reftests/css-invalid/fieldset/fieldset-remove-invalid-element.html new file mode 100644 index 0000000000..7df987c9be --- /dev/null +++ b/layout/reftests/css-invalid/fieldset/fieldset-remove-invalid-element.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<!-- fieldset with one invalid element and the element is dynamically removed --> +<html class='reftest-wait'> + <head> + <style> + fieldset:valid { display: none; } + </style> + </head> + <script> + function onloadHandler() + { + document.getElementById("fieldset").removeChild(document.getElementById('i')); + document.documentElement.className = ''; + } + </script> + <body onload='onloadHandler();'> + <fieldset id="fieldset"> + <input id='i' type='email' value='foo'> + </fieldset> + </body> +</html> |