summaryrefslogtreecommitdiffstats
path: root/layout/reftests/bugs/565819-2.html
blob: 61c98ea2f2e3a1db9d0a5459c72498c440963641 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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>