caret-scrolled-expected.html 355 B

12345678910111213
  1. <!DOCTYPE html>
  2. <div style="position: relative; top: 100px; width: 200px; height: 200px; overflow: hidden; border: 1px solid black">
  3. <div id="target" contenteditable
  4. style="position: relative; top: -50px; font-size: 100px; color: green; outline-style: none">
  5. <br>
  6. <br>
  7. <br>
  8. <br>
  9. </div>
  10. </div>
  11. <script>
  12. target.focus();
  13. </script>