summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/forms/select/menulist-appearance-basic.html
blob: 3213895c7fd2f809123b38808d73d789b0c26d51 (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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<!DOCTYPE html>
<body>
<style>
select {
    margin: 4px;
}
.wrapper {
    background: #dbb102;
    padding: 8px;
    display: inline-block;
}
.wrapper select {
    background: #dbb102;
    border: transparent;
}
</style>
<script>
if (window.testRunner)
    testRunner.setUseMockTheme(false);
</script>

<!-- no style for reference -->
<select><option>foo</option></select> <br>

<!-- padding -->
<select style="padding-top: 8px;"><option>foo</option></select>
<select style="padding-right: 6px;"><option>foo</option></select>
<select style="padding-bottom: 8px;"><option>foo</option></select>
<select style="padding-left: 6px;"><option>foo</option></select>
<br>


<!-- border -->
<select style="border: 3px solid lime;"><option>foo</option></select>
<select style="border-radius: 6px;"><option>foo</option></select> <br>

<!-- background -->
<select style="background: linear-gradient(to bottom, #bc7 0%,#7a5 44%,#242 100%); color:white"><option>foo</option></select>
<div class="wrapper"><select><option>bar</option></select></div>
<br>

<!-- shadow -->
<select style="box-shadow: 4px 4px 10px rgba(255,0,0,0.5), inset 4px 4px 4px rgba(0,255,0,0.5);"><option>foo</option></select> <br>
 
<!-- font-size -->
<select style="font-size: 16px;"><option>foo</option></select>
<select style="font-size: 20px;"><option>foo</option></select>
<select style="font-size: 24px;"><option>foo</option></select> <br>

<!-- zoom -->
<select style="zoom: 1.5;"><option>foo</option></select>
<select style="zoom: 2;"><option>foo</option></select> <br>

<!-- multiple - on platforms that use menulist rendering for <select multiple> tags -->
<select multiple="multiple" style="width: 200px; height: 25px;">
  <option>Item 1</option>
  <option>Item 2</option>
  <option>Item 3</option>
</select>
<br>

<select multiple="multiple" style="width: 200px; height: 25px;">
  <option>Item 1</option>
  <option selected="selected">Item 2</option>
  <option>Item 3</option>
</select>
<br>

<select multiple="multiple" style="width: 200px; height: 25px;">
  <option>Item 1</option>
  <option selected="selected">Item 2</option>
  <option selected="selected">Item 3</option>
</select>
<br>

<select multiple="multiple" style="width: 200px; height: 25px;">
  <option selected="selected">Item 0.1</option>
  <optgroup label="Group 1">
    <option>Item 1.1</option>
    <option>Item 1.2</option>
    <option>Item 1.3</option>
  </optgroup>
  <optgroup label="Group 2">
    <option>Item 2.1</option>
    <option>Item 2.2</option>
    <option selected="selected">Item 2.3</option>
  </optgroup>
  <optgroup label="Group 3">
    <option selected="selected">Item 3.1</option>
    <option>Item 3.2</option>
    <option selected="selected">Item 3.3</option>
  </optgroup>
  <optgroup label="Group 4">
    <option>Item 4.1</option>
    <option selected="selected">Item 4.2</option>
    <option>Item 4.3</option>
  </optgroup>
  <optgroup label="Group 5">
    <option selected="selected">Item 5.1</option>
    <option>Item 5.2</option>
    <option>Item 5.3</option>
  </optgroup>
  <option selected="selected">Item 0.2</option>
</select>
<br>

<select multiple="multiple" style="width: 200px; height: 25px;">
<script type="text/javascript">
for (var i = 0; i < 1234; ++i) {
    document.writeln("  <option selected='selected'>Item " + (i + 1) + "</option>");
}
</script>
</select>
<br>

<!-- drop down arrow overlap test -->
<select style="width:60px"><option>Month</option></select>

</body>