107-noimport.html (880B)
1 <!DOCTYPE html> 2 <html><head> 3 <title> scheduler: stylesheets blocking scripts document.write</title> 4 <script src="/resources/testharness.js"></script> 5 <script src="/resources/testharnessreport.js"></script> 6 <script src="testlib/testlib.js"></script> 7 </head> 8 <body> 9 <div id="log">FAILED (This TC requires JavaScript enabled)</div> 10 <div id="test">Test</div> 11 12 <!-- this stylesheet blocks scripts --> 13 <script> 14 test(function() { 15 document.write("<link rel='stylesheet' href='css/background.css?pipe=trickle(d2)'>"); 16 // note that the pass condition here is not per spec (but does match implementations) as of 2012-06-26 17 assert_equals(getComputedStyle(document.getElementById("test")).position, 18 "static"); 19 }); 20 </script> 21 </body></html>