6 testRunner
.dumpAsText();
8 var d
= document
.getElementById('theDiv');
9 d
.style
.display
= 'block';
10 var style
= document
.defaultView
.getComputedStyle(d
, '');
12 if (style
&& style
.display
== 'block')
13 document
.getElementById('result').innerHTML
= 'SUCCESS';
17 <body onload=
"runTest()">
18 <div id=
"theDiv" style=
"display:none;"></div>
19 <div>This tests that getComputedStyle does a relayout before returning the computed style.
</div>
20 <div id=
"result">FAILURE
</div>