1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
8 <p>Test appearances of input-speech-button in <input type='search'>.</p>
9 <div id="console"></div>
12 var parent = document.createElement('div');
13 document.body.appendChild(parent);
14 parent.innerHTML = '<table><tr><td id=p1><td id=p2><td id=p3></tr></table>';
15 var cells = ["", "", ""];
16 var maxCellCount = [7, 5, 5];
19 for (var size = 8; size < 24; size++) {
20 cells[index] += '<input type="search" style="font-size:' + size + 'px" x-webkit-speech><br>'
21 + '<input type="search" style="font-size:' + size + 'px" value="012345678901234567890123456789"><br>'
22 + '<input type="search" style="font-size:' + size + 'px" value="012345678901234567890123456789" x-webkit-speech><br>';
23 if (++cellCount >= maxCellCount[index]) {
28 for (var i = 0; i < cells.length; ++i) {
29 var div = document.createElement('div');
30 div.innerHTML = cells[i];
31 document.getElementById('p' + (i + 1)).appendChild(div);