Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / getComputedStyle / getComputedStyle-relayout.html
blobafd8df017f5b69ec73e791ee8afdaa39e93db7f0
1 <html>
2 <head>
3 <script>
4 function runTest() {
5 if (window.testRunner)
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';
15 </script>
16 </head>
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>
21 </body>
22 </html>