blob: 92504a47b5961a7fa64b98b9382327b7be8e3c83 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<!DOCTYPE html>
<meta charset="utf-8">
<title>Stylability of select>option with :checked pseudo</title>
<link rel="author" href="mailto:masonf@chromium.org">
<style>
option {
color: black;
}
#option2 {
background-color: red;
}
#option1 {
background: green;
}
</style>
<select id=select size=3 multiple>
<option id=option1>Option #1 (should be green)</option>
<option id=option2>Option #2 (should be red)</option>
</select>
|