[css-grid] Scroll reset position when updating inner html on content
[WebKit-https.git] / LayoutTests / editing / deleting / 5099303.html
1 <p>This tests for a bug where deleting from the start of a paragraph after a table would leave the caret in the wrong position.</p>
2 <div contenteditable="true"><table border="1"><tr><td>The caret should be between these two parenthesis: (</td><td contenteditable="false"></td></tr></table><div id="div">).</div></div>
3
4 <script>
5 var sel = window.getSelection();
6 var div = document.getElementById("div");
7 sel.setPosition(div, 0);
8 </script>