OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 <script> | |
5 window.enablePixelTesting = true; | |
6 function startTest() { | |
7 if (window.testRunner) { | |
8 testRunner.enableUseZoomForDSF(function() { | |
9 testRunner.setBackingScaleFactor(2.0, function() {}); | |
10 }); | |
11 } | |
12 } | |
13 window.matchMedia('screen and (min-resolution: 2dppx)'). | |
14 addListener(function(e) { | |
15 if (e.matches) { | |
16 openMenu(); | |
17 } | |
18 }); | |
19 function openMenu() { | |
20 openPicker(document.getElementById('menu'), finishJSTest, function () { | |
21 testFailed('picker didn\'t open') | |
22 finishJSTest(); | |
23 }); | |
24 } | |
25 </script> | |
26 <script src="../../resources/js-test.js"></script> | |
27 <script src="../forms/resources/picker-common.js"></script> | |
28 </head> | |
29 <body onLoad="startTest()"> | |
30 <p>The font size in the popup should be same as the font size of the SELECT elem
ent except the third OPTION.</p> | |
31 <select id="menu"> | |
32 <option>foo</option> | |
33 <option selected>bar</option> | |
34 <option hidden>qux</option> | |
35 <option>baz</option> | |
36 <optgroup label="Group"> | |
37 <option>foo</option> | |
38 <option>bar</option> | |
39 </optgroup> | |
40 </select> | |
41 <p id="description" style="opacity: 0"></p> | |
42 <div id="console" style="opacity: 0"></div> | |
43 </body> | |
44 </html> | |
OLD | NEW |