| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <head> | |
| 3 <meta http-equiv="content-type" content="text/html; charset=UTF-8"> | |
| 4 <style type="text/css"> | |
| 5 .big { | |
| 6 font-size: 70px; | |
| 7 } | |
| 8 </style> | |
| 9 <script> | |
| 10 function test() { | |
| 11 if (window.testRunner) | |
| 12 testRunner.waitUntilDone(); | |
| 13 | |
| 14 setTimeout('addLargeFontSizeOption();', 100); | |
| 15 } | |
| 16 function addLargeFontSizeOption() | |
| 17 { | |
| 18 var newOpt = document.createElement("option"); | |
| 19 newOpt.appendChild(document.createTextNode("Large Text")); | |
| 20 newOpt.className = "big"; | |
| 21 var sl = document.getElementById("t"); | |
| 22 sl.appendChild(newOpt); | |
| 23 | |
| 24 if (window.testRunner) | |
| 25 testRunner.notifyDone(); | |
| 26 } | |
| 27 </script> | |
| 28 </head> | |
| 29 <body onload="test()"> | |
| 30 This tests that when an option is dynamically added to a menu list, and it i
s too big for the current height,<br> | |
| 31 that the select automatically recalculates the correct height.<br> | |
| 32 <select id="t"> | |
| 33 <option>Normal text</option> | |
| 34 </select> | |
| 35 <div id="res"></div> | |
| 36 </body> | |
| 37 </html> | |
| OLD | NEW |