Backout a74bd5095902, Bug 959405 - Please update the Buri Moz-central, 1.3, 1.2 with...
[gecko.git] / layout / forms / test / test_bug402198.html
blob8689b224281bc05d2d68794054186c31b396f755
1 <html>
2 <!--
3 https://bugzilla.mozilla.org/show_bug.cgi?id=402198
4 -->
5 <head>
6 <title>Test for Bug 402198</title>
7 <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
8 <script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
9 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
10 </head>
11 <body>
12 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=402198">Mozilla Bug 402198</a>
13 <p id="display">
14 <select></select>
15 <select><optgroup></optgroup></select>
16 <legend style="overflow: scroll;">
17 <select></select>
18 </legend>
19 <span></span>
20 <span style="display: -moz-box;">
21 <select></select>
22 </span>
23 <legend style=" ">
24 <label style="overflow: scroll; display: -moz-box;">
25 <select></select>
26 </label>
27 </legend>
28 <legend>
29 <label style=" display: table;">
30 <select id="a">
31 <option>High Grade</option>
32 <option>Medium Grade</option>
33 </select>
34 </label>
35 </legend>
37 <input>
38 <select multiple="multiple"></select>
39 <select style="overflow: scroll; display: -moz-box;">
40 <optgroup></optgroup>
41 <optgroup style="display: table-cell;"></optgroup>
42 </select>
43 </p>
45 <pre id="test">
46 <script class="testbody" type="text/javascript">
47 function doe3() {
48 document.documentElement.style.display = 'none';
49 document.body.offsetHeight;
50 document.documentElement.style.display = '';
51 document.body.offsetHeight;
53 document.getElementById('a').focus();
54 document.body.style.display = 'none';
56 synthesizeKey('VK_TAB', {type: "keypress", shiftKey: true});
58 is(0, 0, "this is a crash/assertion test, so we're ok if we survived this far");
59 SimpleTest.finish();
60 setTimeout(function() {document.body.style.display = '';}, 400);
63 function do_test() {
64 setTimeout(doe3,300);
67 SimpleTest.waitForExplicitFinish();
68 addLoadEvent(do_test);
69 </script>
70 </pre>
72 <style>
73 * {quotes: "quote" "quote" !important;}
74 </style>
76 </body>
77 </html>