https://bugs.webkit.org/show_bug.cgi?id=72591
[WebKit-https.git] / LayoutTests / fast / dom / document-width-height-force-layout.html
1 <html>
2 <head>
3     <script>
4         function log(msg)
5         {
6             document.getElementById('console').appendChild(document.createTextNode(msg + "\n"));
7         }
8
9         function test()
10         {
11             if (window.layoutTestController)
12                 layoutTestController.dumpAsText();
13
14             log("document.body.clientWidth = " + document.body.clientWidth);
15             log("document.body.clientHeight = " + document.body.clientHeight);
16         }
17     </script>
18 </head>
19 <body onload="test()">
20     <p>This tests that document.body.clientWidth and document.body.clientHeight cause a layout on use.  The test has passed if they have positive values.</p>
21     <pre id="console"></pre>
22 </body>
23 </html>