summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/scrolling/overlay-scrollbars.html
blob: b4f315f6b88c4fc8cd8dd1344f653981bee47478 (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
34
35
36
37
38
39
40
<!DOCTYPE html>
<html>
<head>
<style>
html, body {
    margin: 0;
    padding: 0;
}
.container {
    width: 100px;
    height: 100px;
    overflow: auto;
    background-color: lime;
}
.box {
    width: 500px;
    height: 500px;
}
</style>
<script>
if (window.internals) {
    testRunner.dumpAsTextWithPixelResults();
    internals.settings.setOverlayScrollbarsEnabled(true);
    internals.settings.setMockScrollbarsEnabled(true);
}
</script>
</head>
<body>
<p>You should see first 2 green boxes with overlay scrollbars.
The second box should have a scrollbar on the left.
Remaining 2 green boxes should appear without overlay scrollbars.
</p>

<div class="container"><div class="box"></div></div>
<div dir="rtl" class="container"><div class="box"></div></div>

<div class="container" style="overflow: scroll"></div>
<div dir="rtl" class="container" style="overflow: scroll"></div>
</body>
</html>