956b3777cb8f35a735a9c29b22ddba0799e1ca2b
[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.width = " + document.width);
15             log("document.height = " + document.height);
16         }
17     </script>
18 </head>
19 <body onload="test()">
20     <p>This tests that document.width and document.height cause a layout on use.  The test has passed if they have positive values.</p>
21     <pre id="console"></pre>
22 </body>
23 </html>