summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/forms/select/menulist-disabled-option.html
blob: b4c60e38606e30553aaf6d8aed1ed9b7a24795fd (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
<!DOCTYPE html>
<html>
<body>
<h1>Webkit Bug <a href="https://bugs.webkit.org/show_bug.cgi?id=74270">74270</a></h1>
<select name="three">
<option value="1" disabled>Fail</option>
<option value="2" disabled>Fail</option>
<option value="3">Pass</option>
<option value="4">Fail</option>
</select>
<br />
<select name="two">
<option value="1" disabled>Fail</option>
<option value="2" disabled selected>Pass</option>
<option value="3">Fail</option>
<option value="4">Fail</option>
</select>
<br />

<!-- crbug.com/229259 -->
<style>
#option1:checked {
    color: red;
}
</style>
<select>
<option id="option1" disabled>Fail</option>
<option>Pass</option>
</select>
<br />

<select id="select4">
<option id="option2">Pass</option>
<option>Fail</option>
</select>
<script>
document.getElementById('option2').disabled = true;
document.getElementById('select4').appendChild(document.createElement('option'));
</script>
</body>
</html>