summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/scrolling/absolute-position-behind-scrollbar.html
blob: e45a56054cc8bef6d92da4f290b3212cb0250e1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!DOCTYPE html>
<script src="../../resources/js-test.js"></script>
<style>
#a {
  position: absolute;
  background-color: #def;
  left: 100px;
  top: 100px;
  width: 1000px;
  height: 1000px;
}
</style>
Tests that the scrollbar can be clicked even when it clips absolute-positioned content.
<div id="a"></div>
<script>
window.jsTestIsAsync = true;

function runTest() {
  eventSender.mouseMoveTo(790, 500);
  eventSender.mouseDown();
  eventSender.mouseUp();
  shouldBecomeEqual('scrollY > 0', 'true', finishJSTest);
}

onload = runTest;
</script>