Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / interactive-validation-select-crash.html
blobd1043a8a3dfcd733ed8f59095418b887e5cea611
1 <!DOCTYPE html>
2 <head>
3 <script src="../../resources/js-test.js"></script>
4 </head>
5 <body>
6 <p>Test for a bug that LayoutBlockFlow crashed when a validation message bubble for a select element with float:left was closing.</p>
7 <div id=console></div>
8 <form>
9 <select style="float:left" required>
10 <option value="">Plese select</option>
11 <option>Foo</option>
12 </select>
13 <input type=submit id=submit>
14 </form>
16 <script>
17 window.jsTestIsAsync = true;
19 function closeBubble() {
20 // Make the <select> valid to close the validation message bubble.
21 document.getElementsByTagName('select')[0].selectedIndex = 1;
22 setTimeout(finish, 0);
24 function finish() {
25 testPassed('Not crashed.');
26 finishJSTest();
29 document.getElementById('submit').click();
30 setTimeout(closeBubble, 0);
31 </script>
32 </body>