Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / Element / resources / scrollable-iframe-quirks.html
blob5d5f21b8eb7211ecb6c05ca0f695acdbdde5ba03
1 <head>
2 <style>
3 html, body {
4 /* Use simple predictable spacing between html, body and content so
5 we can propertly test scrollWidth and scrollHeight */
6 margin: 0;
7 padding: 5px;
9 div {
10 height: 10000px;
11 width: 10000px;
13 </style>
14 <script>
15 function scroll() {
16 document.body.scrollTop = 5000;
17 document.body.scrollLeft = 4000;
19 // The calls below should not take effect, given
20 // that setting scrollTop/Left on the root node
21 // is no-op in quirks-mode.
22 document.documentElement.scrollTop = 1;
23 document.documentElement.scrollLeft = 1;
25 parent.verifyTest()
27 </script>
28 </head>
29 <body onload="scroll()">
30 <div></div>
31 </body>