input-number.html (794B)
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 focusHandler() { 12 setTimeout(function() { 13 document.documentElement.removeAttribute('class'); 14 }, 0); 15 } 16 17 </script> 18 </head> 19 <body> 20 <input type="number" autofocus onfocus="focusHandler();" 21 style="-moz-appearance: none;"> 22 <!-- div to cover spin box area for type=number to type=text comparison --> 23 <div style="display:block; position:absolute; background-color:black; width:200px; height:100px; top:0px; left:100px;"> 24 </body> 25 </html>