Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / select-width-font-change.html
bloba021d50bb34e0749ffd6fde3559462145659363a
1 <head>
3 <script>
5 function test()
7 if (window.testRunner)
8 testRunner.dumpAsText();
10 var widthBefore = document.getElementById("select").offsetWidth;
11 document.getElementById("select").setAttribute("style", "font-size: 32px");
12 var widthAfter = document.getElementById("select").offsetWidth;
14 if (widthAfter - widthBefore > 20)
15 document.getElementById("result").innerHTML = "PASS: Resize seems to have worked.";
16 else
17 document.getElementById("result").innerHTML = "FAIL: Size is not enough bigger after the style change.";
20 </script>
22 </head>
24 <body onload="test()">
26 <p>This test checks to see if changing the font of a select element causes it to resize to accomodate the larger text.</p>
28 <p><select id="select" style="font-size: 9px">
29 <option>This is an option with some text in it.</option>
30 </select></p>
32 <p id="result"></p>
34 <body>