caret-outside-block.html 506 B

1234567891011121314
  1. <html>
  2. <head>
  3. <script src="resources/text-based-repaint.js"></script>
  4. <script>
  5. function repaintTest()
  6. {
  7. var target = document.getElementById("target");
  8. getSelection().setBaseAndExtent(target.firstChild, 43, target.firstChild, 43);
  9. }
  10. </script>
  11. </head>
  12. <body onload="runRepaintAndPixelTest()">
  13. <div id="target" style="-webkit-user-modify: read-write; text-align: right; outline: none;">The caret should be at the end of this line</div>
  14. </body>