summaryrefslogtreecommitdiffstats
path: root/layout/reftests/bugs/565819-2.html
diff options
context:
space:
mode:
Diffstat (limited to 'layout/reftests/bugs/565819-2.html')
-rw-r--r--layout/reftests/bugs/565819-2.html18
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 0000000000..61c98ea2f2
--- /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.remove();
+ }
+ </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>