4 <script src=
"../resources/common.js"></script>
6 input::-webkit-calendar-picker-indicator {
12 <dd><input list=
"dl1">
14 <dd><input list=
"dl-empty">
15 <dt>Datalist without valid options:
16 <dd><input list=
"dl-invalid" maxlength=
3>
17 <dt>Empty datalist becomes non-empty:
18 <dd><input list=
"dl-empty-valid">
19 <dt>Datalist becomes empty:
20 <dd><input list=
"dl-valid-empty">
21 <dt>Datalist disappears:
22 <dd><input list=
"dl-disappear">
23 <dt>No datalist with the speicified ID:
24 <dd><input list=
"dl-no-id">
25 <dt>No datalist with the speicified ID, then it appears:
26 <dd><input list=
"dl-no-id-then-added">
30 <option>Suggestion
</option>
32 <datalist id=
"dl-empty">
34 <datalist id=
"dl-invalid">
35 <option>Suggestion
</option>
37 <datalist id=
"dl-empty-valid">
39 <datalist id=
"dl-valid-empty">
40 <option>Suggestion
</option>
42 <datalist id=
"dl-disappear">
43 <option>Suggestion
</option>
45 <datalist id=
"dl-no-id-then-added-pre">
46 <option>Suggestion
</option>
51 $('dl-empty-valid').innerHTML
= '<option>foo</option>';
52 $('dl-valid-empty').innerHTML
= '';
53 $('dl-disappear').remove();
54 $('dl-no-id-then-added-pre').id
= 'dl-no-id-then-added';
55 document
.body
.offsetLeft
;
56 testRunner
.notifyDone();
59 window
.onload = function() {
60 document
.body
.offsetLeft
;
61 setTimeout(change
, 0);
63 testRunner
.waitUntilDone();