Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/select/menulist-height-change.html

Issue 2086663007: Use fixed logical height in LayoutMenuList (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698