5 testRunner
.dumpAsText();
8 #test { position: absolute; width:
100px; height:
100px }
12 Test that offsetWidth and similar get up to date style information even if a new stylesheet load is started at late stage of document rendering
13 <link rel=stylesheet
href=
"data:text/css,blah">
14 <div id=console
></div>
18 var test
= document
.getElementById('test');
19 var console
= document
.getElementById('console');
20 console
.innerHTML
= ((test
.offsetWidth
== 100) ? "<span style='color:green'>PASS</span> " : "<span style='color:red'>FAIL</span> ");