summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/overflow/height-during-simplified-layout.html
blob: 155b0b481120a68fd978fded6f5996dff1348aa1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<html>
<body>

<p>This test passes if you see a green box below.</p>

<div id="scrollable" style="height: 0; overflow-y: auto; padding-bottom: 200px; background-color: green">
  <div style="position: relative; height: 400px; background-color: red">
    <div id="node-to-hide" style="position: absolute;">hello</div>
  </div>
</div>
<script src="../../resources/js-test.js"></script>
<script>
document.body.offsetLeft;
document.getElementById("node-to-hide").style.display = "none";
document.getElementById("scrollable").scrollTop = "400";
shouldBe("document.getElementById('scrollable').scrollTop", "400");
shouldBe("document.getElementById('scrollable').scrollHeight", "600");
</script>
</body>
</html>