2 div.container { float: left; background-color: #eee; padding:
4px; margin:
4px; }
3 div.swatch { width:
14px; height:
14px; background-color: white; position: relative; }
4 div.swatch div { position: absolute; top:
0; left:
0; width:
100%; height:
100%; }
5 select { display: block; margin-left:
14px; margin-bottom:
1px; }
7 div.container.white
> select,
8 div.container.white
> div.swatch
> div
9 { background-color: white; }
11 div.container.black
> select,
12 div.container.black
> div.swatch
> div
13 { background-color: black; }
15 div.container.initial
> select,
16 div.container.initial
> div.swatch
> div
17 { background-color: initial; }
19 div.container.semiblue
> select,
20 div.container.semiblue
> div.swatch
> div
21 { background-color: rgba(
0,
0,
255,
0.5); }
23 .solid { background-color: red; }
24 .reddish { background-color: rgba(
255,
0,
0,
0.75); }
25 .semigreen { background-color: rgba(
0,
255,
0,
0.5); }
26 .darken { background-color: rgba(
0,
0,
0,
0.67); }
29 <strong>This test is for Windows only.
</strong>
30 When you pull down each menu, the items
’ background colors should match up with the swatches on the left (except for the hovered item).
32 <div class=
"container white">
35 <option>Default (transparent) option
</option>
36 <option class=
"solid">Solid red option
</option>
37 <option class=
"reddish">25% transparent red option
</option>
38 <option class=
"semigreen">50% transparent green option
</option>
39 <option class=
"darken">33% transparent black option
</option>
41 <div class=
"swatch"></div>
44 <div class=
"solid"></div>
49 <div class=
"reddish"></div>
54 <div class=
"semigreen"></div>
59 <div class=
"darken"></div>
63 <div class=
"container black">
66 <option>Default (transparent) option
</option>
67 <option class=
"solid">Solid red option
</option>
68 <option class=
"reddish">25% transparent red option
</option>
69 <option class=
"semigreen">50% transparent green option
</option>
70 <option class=
"darken">33% transparent black option
</option>
72 <div class=
"swatch"></div>
75 <div class=
"solid"></div>
80 <div class=
"reddish"></div>
85 <div class=
"semigreen"></div>
90 <div class=
"darken"></div>
94 <div class=
"container initial">
97 <option>Default (transparent) option
</option>
98 <option class=
"solid">Solid red option
</option>
99 <option class=
"reddish">25% transparent red option
</option>
100 <option class=
"semigreen">50% transparent green option
</option>
101 <option class=
"darken">33% transparent black option
</option>
103 <div class=
"swatch"></div>
106 <div class=
"solid"></div>
111 <div class=
"reddish"></div>
116 <div class=
"semigreen"></div>
121 <div class=
"darken"></div>
125 <div class=
"container semiblue">
128 <option>Default (transparent) option
</option>
129 <option class=
"solid">Solid red option
</option>
130 <option class=
"reddish">25% transparent red option
</option>
131 <option class=
"semigreen">50% transparent green option
</option>
132 <option class=
"darken">33% transparent black option
</option>
134 <div class=
"swatch"></div>
137 <div class=
"solid"></div>
142 <div class=
"reddish"></div>
147 <div class=
"semigreen"></div>
152 <div class=
"darken"></div>