Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / select / menulist-popup-item-style.html
blobb32a787839bb016c4302a1d0f3b8096168ffaca5
1 <html>
2 <head>
3 <meta charset="utf-8">
4 <script src="../../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <select id="select" dir="rtl">
8 <option>Same ببببب</option>
9 <optgroup label="group">
10 <option>Same ببببب</option>
11 </optgroup>
12 </select>
14 <script>
15 function test() {
16 if (!window.internals)
17 return;
19 description('Tests fix for regression <a href="http://crbug.com/395613">crbug.com/395613</a>. Checks that option in optgroup is styled properly.');
21 popup = document.getElementById('select');
22 popup.focus();
23 eventSender.keyDown(' ', null);
24 shouldBeTrue('internals.isSelectPopupVisible(popup)');
25 shouldBeTrue('internals.selectPopupItemStyleIsRtl(popup, 2)');
26 popup.blur();
27 shouldBeFalse('internals.isSelectPopupVisible(popup)');
28 popup.style.fontSize = '50px';
29 popup.focus();
30 eventSender.keyDown(' ', null);
31 shouldBeTrue('internals.isSelectPopupVisible(popup)');
32 shouldBeGreaterThan('internals.selectPopupItemStyleFontHeight(popup, 2)', '50');
34 test();
35 </script>
36 </body>
37 </html>