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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/select-popup/popup-menu-appearance-minimum-font.html

Issue 2359663003: SELECT popup should respect to the minimum font size setting (Closed)
Patch Set: Created 4 years, 3 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script> 4 <script>
5 window.enablePixelTesting = true; 5 window.enablePixelTesting = true;
6 </script> 6 </script>
7 <script src="../../../resources/js-test.js"></script> 7 <script src="../../../resources/js-test.js"></script>
8 <script src="../resources/picker-common.js"></script> 8 <script src="../resources/picker-common.js"></script>
9 </head> 9 </head>
10 <body> 10 <body>
11 <style>
12 select, span {
13 font-size: 6px;
14 }
15 </style>
11 <select id="menu"> 16 <select id="menu">
12 <option>foo</option> 17 <option>foo</option>
13 <option selected>bar</option> 18 <optgroup label="group" id="group">
14 <option>qux</option> 19 <option selected>bar</option>
20 </optgroup>
15 <option>baz</option> 21 <option>baz</option>
16 </select> 22 </select>
23 <span>The font size in the popup content should be 12px, which is the same as th is text.</span>
17 <p id="description" style="opacity: 0"></p> 24 <p id="description" style="opacity: 0"></p>
18 <div id="console" style="opacity: 0"></div> 25 <div id="console" style="opacity: 0"></div>
19 <script> 26 <script>
27 if (window.testRunner)
28 testRunner.overridePreference('WebKitMinimumFontSize', '12');
20 var menu = document.getElementById('menu'); 29 var menu = document.getElementById('menu');
21 openPicker(menu, finishJSTest, function () { 30 openPicker(menu, finishJSTest, function () {
22 testFailed('picker didn\'t open') 31 testFailed('picker didn\'t open')
23 finishJSTest(); 32 finishJSTest();
24 }); 33 });
25 </script> 34 </script>
26 </body> 35 </body>
27 </html> 36 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698