move-caret-in-container-change-paint-offset-keep-visual-expected.html 270 B

123456789
  1. <!DOCTYPE html>
  2. <div id="editable" contenteditable="true"
  3. style="outline: none; position: absolute; top: 210px; left: 110px; width: 100px">ABCDE</div>
  4. <script>
  5. onload = function() {
  6. editable.focus();
  7. getSelection().collapse(editable.firstChild, 4);
  8. };
  9. </script>