Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / overflow / height-during-simplified-layout.html
blob155b0b481120a68fd978fded6f5996dff1348aa1
1 <html>
2 <body>
4 <p>This test passes if you see a green box below.</p>
6 <div id="scrollable" style="height: 0; overflow-y: auto; padding-bottom: 200px; background-color: green">
7 <div style="position: relative; height: 400px; background-color: red">
8 <div id="node-to-hide" style="position: absolute;">hello</div>
9 </div>
10 </div>
11 <script src="../../resources/js-test.js"></script>
12 <script>
13 document.body.offsetLeft;
14 document.getElementById("node-to-hide").style.display = "none";
15 document.getElementById("scrollable").scrollTop = "400";
16 shouldBe("document.getElementById('scrollable').scrollTop", "400");
17 shouldBe("document.getElementById('scrollable').scrollHeight", "600");
18 </script>
19 </body>
20 </html>