summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/scrolling/fractional-scroll-height-chaining.html
blob: 2eb2a04ae27d7570bab7861a1581724414d81694 (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
27
28
29
30
31
32
33
<!DOCTYPE html>
<script src="../../resources/js-test.js"></script>
<style>

#scroller {
    background-color: #ccc;
    margin-top: 20px;
    overflow: scroll;
}

#fracheight {
    height: 1200.3px;
}

</style>
<div id="scroller" onmousewheel="">
  <div id="fracheight"></div>
</div>
<script>
description("Verifies that main-thread scrolls chain correctly from a " +
            "fractional-height scroller to its parent.");

if (window.eventSender) {
    internals.settings.setScrollAnimatorEnabled(false);
    eventSender.mouseMoveTo(100, 400);
    eventSender.mouseScrollBy(0, -1);
    shouldBe("scrollY", "40");
}
else
    debug("To run interactively, try to scroll the page with the mouse " +
          "wheel while the pointer is inside the gray box below.")

</script>