input-number.html 794 B

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