| <script src="../../resources/check-layout.js"></script> |
| testRunner.waitUntilDone(); |
| document.getElementById("container").style.width="110%"; |
| document.getElementById("margin").style.left="200px"; |
| document.getElementById("container").style.width="100%"; |
| document.getElementById("margin").style.left="12px"; |
| window.checkLayout("#scrollable",document.getElementById("output")); |
| <body onload="runTest();"> |
| <p>Tests that the div element with id=scrollable scroll width is 250.</p> |
| <div id="scrollable" data-expected-scroll-width="250"> |
| <div id="container" style="width: 100%;"> |
| <div id="margin" style="left: 12px;"> |
| <div id="spacer" style="height: 100px; width: 100%;"> |