diff options
Diffstat (limited to 'layout/reftests/bugs/565819-2.html')
-rw-r--r-- | layout/reftests/bugs/565819-2.html | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/layout/reftests/bugs/565819-2.html b/layout/reftests/bugs/565819-2.html new file mode 100644 index 000000000..5ae452094 --- /dev/null +++ b/layout/reftests/bugs/565819-2.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> + <head> + <style> + div { color: red; } + div:last-child { color: green; } + </style> + <script> + window.onload = function() { + var r = document.getElementById("r"); + r.parentNode.removeChild(r); + } + </script> + </head> + <body> + <!-- Need extra wrapper div, because whitespace inside <body> is all weird --> + <div><div>This should be green</div><div id="r"></div></div></body> +</html> |