3 <script src=
"../../resources/js-test.js"></script>
6 <p>Test for a bug that LayoutBlockFlow crashed when a validation message bubble for a select element with float:left was closing.
</p>
9 <select style=
"float:left" required
>
10 <option value=
"">Plese select
</option>
13 <input type=submit id=submit
>
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);
25 testPassed('Not crashed.');
29 document
.getElementById('submit').click();
30 setTimeout(closeBubble
, 0);