caret-subpixel.html 426 B

123456789101112131415
  1. <!DOCTYPE html>
  2. <style>
  3. #target:focus {
  4. outline:none;
  5. }
  6. </style>
  7. <script src="resources/text-based-repaint.js"></script>
  8. <!-- Tests that carets are painted at pixel-snapped positions. If the caret is blurry, the test has failed. -->
  9. <input id="target" type="text" style="width:200.5px; text-align: right; padding-right: 19px">
  10. <script>
  11. function repaintTest() {
  12. target.focus();
  13. }
  14. onload = runRepaintAndPixelTest;
  15. </script>