summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/manual-tests/item-background.html
blob: d9d3b0794a3b62d06c3742b7b3e99af4a076a421 (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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
<style>
    div.container { float: left; background-color: #eee; padding: 4px; margin: 4px; }
    div.swatch { width: 14px; height: 14px; background-color: white; position: relative; }
    div.swatch div { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
    select { display: block; margin-left: 14px; margin-bottom: 1px; }

    div.container.white > select,
    div.container.white > div.swatch > div
        { background-color: white; }

    div.container.black > select,
    div.container.black > div.swatch > div
        { background-color: black; }

    div.container.initial > select,
    div.container.initial > div.swatch > div
        { background-color: initial; }

    div.container.semiblue > select,
    div.container.semiblue > div.swatch > div
        { background-color: rgba(0, 0, 255, 0.5); }

    .solid { background-color: red; }
    .reddish { background-color: rgba(255, 0, 0, 0.75); }
    .semigreen { background-color: rgba(0, 255, 0, 0.5); }
    .darken { background-color: rgba(0, 0, 0, 0.67); }
</style>
<p>
    <strong>This test is for Windows only.</strong>
    When you pull down each menu, the items&rsquo; background colors should match up with the swatches on the left (except for the hovered item).
</p>
<div class="container white">
    Solid white menu:
    <select>
        <option>Default (transparent) option</option>
        <option class="solid">Solid red option</option>
        <option class="reddish">25% transparent red option</option>
        <option class="semigreen">50% transparent green option</option>
        <option class="darken">33% transparent black option</option>
    </select>
    <div class="swatch"></div>
    <div class="swatch">
        <div>
            <div class="solid"></div>
        </div>
    </div>
    <div class="swatch">
        <div>
            <div class="reddish"></div>
        </div>
    </div>
    <div class="swatch">
        <div>
            <div class="semigreen"></div>
        </div>
    </div>
    <div class="swatch">
        <div>
            <div class="darken"></div>
        </div>
    </div>
</div>
<div class="container black">
    Solid black menu:
    <select>
        <option>Default (transparent) option</option>
        <option class="solid">Solid red option</option>
        <option class="reddish">25% transparent red option</option>
        <option class="semigreen">50% transparent green option</option>
        <option class="darken">33% transparent black option</option>
    </select>
    <div class="swatch"></div>
    <div class="swatch">
        <div>
            <div class="solid"></div>
        </div>
    </div>
    <div class="swatch">
        <div>
            <div class="reddish"></div>
        </div>
    </div>
    <div class="swatch">
        <div>
            <div class="semigreen"></div>
        </div>
    </div>
    <div class="swatch">
        <div>
            <div class="darken"></div>
        </div>
    </div>
</div>
<div class="container initial">
    Transparent menu:
    <select>
        <option>Default (transparent) option</option>
        <option class="solid">Solid red option</option>
        <option class="reddish">25% transparent red option</option>
        <option class="semigreen">50% transparent green option</option>
        <option class="darken">33% transparent black option</option>
    </select>
    <div class="swatch"></div>
    <div class="swatch">
        <div>
            <div class="solid"></div>
        </div>
    </div>
    <div class="swatch">
        <div>
            <div class="reddish"></div>
        </div>
    </div>
    <div class="swatch">
        <div>
            <div class="semigreen"></div>
        </div>
    </div>
    <div class="swatch">
        <div>
            <div class="darken"></div>
        </div>
    </div>
</div>
<div class="container semiblue">
    50% blue menu:
    <select>
        <option>Default (transparent) option</option>
        <option class="solid">Solid red option</option>
        <option class="reddish">25% transparent red option</option>
        <option class="semigreen">50% transparent green option</option>
        <option class="darken">33% transparent black option</option>
    </select>
    <div class="swatch"></div>
    <div class="swatch">
        <div>
            <div class="solid"></div>
        </div>
    </div>
    <div class="swatch">
        <div>
            <div class="reddish"></div>
        </div>
    </div>
    <div class="swatch">
        <div>
            <div class="semigreen"></div>
        </div>
    </div>
    <div class="swatch">
        <div>
            <div class="darken"></div>
        </div>
    </div>
</div>