summaryrefslogtreecommitdiffstats
path: root/layout/reftests/bugs/367612-1d.html
blob: 1636be08b8c6f58238530cb69b5b9fb88f6db916 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!DOCTYPE html>
<html>
  <head>
    <style> * { color: red } </style>
    <style id="t"></style>
  </head>
  <body>
    <span class="test">This text should be green</span>
    <script>
      document.getElementById("t").appendChild(document.createTextNode(""));
      document.getElementById("t").firstChild.data = "* { color: green }";
    </script>
  </body>
</html>