summaryrefslogtreecommitdiffstats
path: root/layout/reftests/bugs/565819-1.html
blob: e0c327171267fef6e6b849925f11dfa9d09dd791 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!DOCTYPE html>
<html>
  <head>
    <style>
      div { color: green; }
      div:empty { color: red; }
    </style>
    <script>
      window.onload = function () {
        document.getElementById("x").appendChild(document.createTextNode("This should be green"));
      }
    </script>
  </head>
  <body>
    <div id="x"></div>
  </body>
</html>