summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/forms/select/listbox-overlay-scrollbar.html
blob: e0934abb9d7cb2b29bec32636189088fa8a2a674 (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
41
42
43
44
45
46
47
48
49
50
<!DOCTYPE html>
<html>
<head>
<style>
html, body {
    margin: 0;
    padding: 0;
}
.sel {
    border: 0;
    width: 100px;
    height: 100px;
    background-color: lime;
    display: block;
    font-family: "Arial";
    font-size : 12pt;
}
</style>
<script>
if (window.internals) {
    testRunner.dumpAsTextWithPixelResults();
    internals.settings.setOverlayScrollbarsEnabled(true);
    internals.settings.setMockScrollbarsEnabled(true);
}
</script>
</head>
<body>
<p>You should see 2 green boxes with overlay scrollbar. The second box
should have a scrollbar on the left.</p>

<div>
<select multiple class="sel" size="5">
<option>foo1</option>
<option>foo2</option>
<option>foo3</option>
<option>foo4</option>
<option>foo5</option>
</select>
</div>
<div>
<select multiple dir="rtl" class="sel" size="5">
<option>foo1</option>
<option>foo2</option>
<option>foo3</option>
<option>foo4</option>
<option>foo5</option>
</select>
</div>
</body>
</html>