summaryrefslogtreecommitdiffstats
path: root/layout/reftests/bugs/367612-1f.html
blob: c8b88c87f1cb63e7d58f0daf13936702c094c294 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!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("* { color: green }"));
      document.getElementById("t").
        appendChild(document.createTextNode("* { color: red }"));
      // Flush reflow
      document.body.offsetWidth;
      document.getElementById("t").
        removeChild(document.getElementById("t").lastChild);
    </script>
  </body>
</html>