Backed out 2 changesets (bug 1930466) for causing bc failures on browser_timezone...
[gecko.git] / layout / reftests / forms / select / focusring-1.html
blobe384bd40974b19567db68f657a0e348c2c4a3831
1 <!DOCTYPE HTML>
2 <html class="reftest-wait"><head>
3 <meta charset="utf-8">
4 <title>Testcase #1 for bug 1253977</title>
5 <style type="text/css">
7 * { -moz-appearance:none; }
8 :focus {
9 border:2px solid black;
11 :-moz-focusring {
12 outline: 2px dashed black;
15 </style>
16 </head>
17 <body>
19 <select><option>1<option>2</select>
20 <input>
22 <script>
24 function runTests() {
25 var s = document.querySelector("select");
26 var b = document.querySelector("input");
27 s.focus();
28 document.body.offsetHeight;
29 setTimeout(function(){ s.style.display = 'none'; document.body.offsetHeight; }, 2);
30 setTimeout(function(){ b.focus(); document.body.offsetHeight; }, 3);
31 setTimeout(function(){ s.style.display = 'inline'; document.body.offsetHeight; }, 4);
32 setTimeout(function(){ document.documentElement.removeAttribute("class"); }, 100);
35 window.focus();
36 window.addEventListener("MozReftestInvalidate", runTests);
38 </script>
40 </body>
41 </html>