focus-handling-ref.html (833B)
1 <!DOCTYPE html> 2 <html class="reftest-wait"> 3 <!-- In this case we're using reftest-wait to make sure the test doesn't 4 get snapshotted before it's been focused. We're not testing 5 invalidation so we don't need to listen for MozReftestInvalidate. 6 --> 7 <head> 8 <meta charset="utf-8"> 9 <script> 10 11 function end() { 12 setTimeout(function() { 13 document.documentElement.className = ""; 14 }, 0); 15 } 16 17 </script> 18 </head> 19 <body> 20 <input style="-moz-appearance:none;"><br> 21 <input autofocus onfocus="end();" 22 style="-moz-appearance:none;"> 23 <!-- div to cover spin box area for type=number to type=text comparison --> 24 <div style="display:block; position:absolute; background-color:black; width:200px; height:100px; top:0px; left:100px;"> 25 </body> 26 </html>