summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/forms/select/listbox-with-display-none-option.html
blob: 2c9994a3199f80f121edd4d734a8d30f2568c79c (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
<!doctype html>
<html>
<head>
</head>
<body>
<p>
    The select list box should not display items (options and optgroups) with style "display: none".
</p>
<select size="7">
    <option>One</option>
    <option>Two</option>
    <option>Three</option>
    <option style="display: none">Four</option>
    <option>Five</option>
    <option id='56' style="display: none">Six</option>
    <option>Seven</option>
</select>
<select size="7">
    <option>One</option>
    <option>Two</option>
    <option>Three</option>
    <optgroup label="***45***">
        <option style="display: none">Four</option>
        <option>Five</option>
    </optgroup>
    <option style="display: none">Six</option>
    <option>Seven</option>
</select>
<select size="7">
    <option>One</option>
    <option>Two</option>
    <option id="13">Three</option>
    <optgroup label="***45***">
        <option>Four</option>
        <option id="15">Five</option>
    </optgroup>
    <option>Six</option>
    <option>Seven</option>
</select>
<select size="8">
    <option>One</option>
    <option>Two</option>
    <option>Three</option>
    <optgroup id="24" label="**456**" style="display: none">
        <option>Four</option>
        <option>Five</option>
        <option>Six</option>
    </optgroup>
    <option>Seven</option>
</select>
<select size="8">
    <option>One</option>
    <option>Two</option>
    <option>Three</option>
    <optgroup id="34" label="**456**">
        <option>Four</option>
        <option>Five</option>
        <option>Six</option>
    </optgroup>
    <option>Seven</option>
</select>
<select size="8">
    <option>One</option>
    <option>Two</option>
    <option>Three</option>
    <optgroup id="44" label="**456**" style="display: none">
        <option>Four</option>
        <option>Five</option>
        <option>Six</option>
    </optgroup>
    <option>Seven</option>
</select>

<script>
var elem = document.getElementById('13');
elem.style.display = 'none';
elem = document.getElementById('15');
elem.style.display = 'none';
elem = document.getElementById('34');
elem.style.display = 'none';
elem = document.getElementById('44');
elem.style.display = 'block';
elem = document.getElementById('56');
elem.style.display = 'block';
</script>

</body>
</html>