focusring-1-ref.html 686 B

1234567891011121314151617181920212223242526272829303132333435363738
  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">
  6. * { -moz-appearance:none; }
  7. :focus {
  8. border:2px solid black;
  9. }
  10. :-moz-focusring {
  11. outline: 2px dashed black;
  12. }
  13. </style>
  14. </head>
  15. <body>
  16. <select><option>1<option>2</select>
  17. <input>
  18. <script>
  19. function runTests() {
  20. var b = document.querySelector("input");
  21. b.focus();
  22. document.body.offsetHeight;
  23. setTimeout(function(){ document.body.offsetHeight; document.documentElement.removeAttribute("class"); }, 100);
  24. }
  25. window.focus();
  26. window.addEventListener("MozReftestInvalidate", runTests, false);
  27. </script>
  28. </body>
  29. </html>