1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/bugs/367612-1f.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,20 @@ 1.4 +<!DOCTYPE html> 1.5 +<html> 1.6 + <head> 1.7 + <style> * { color: red } </style> 1.8 + <style id="t"></style> 1.9 + </head> 1.10 + <body> 1.11 + <span class="test">This text should be green</span> 1.12 + <script> 1.13 + document.getElementById("t"). 1.14 + appendChild(document.createTextNode("* { color: green }")); 1.15 + document.getElementById("t"). 1.16 + appendChild(document.createTextNode("* { color: red }")); 1.17 + // Flush reflow 1.18 + document.body.offsetWidth; 1.19 + document.getElementById("t"). 1.20 + removeChild(document.getElementById("t").lastChild); 1.21 + </script> 1.22 + </body> 1.23 +</html>