[css-grid] Scroll reset position when updating inner html on content
[WebKit-https.git] / LayoutTests / editing / deleting / 5483370.html
1 <p>This tests for a problem where empty table rows after the selection being deleted would be removed incorrectly.  Only the last letter in 'foo' should be removed during this delete.</p>
2 <div contenteditable="true"><table border="1"><tr><td id="td">foo</td><td></td></tr><tr><td></td><td></td></tr></table</div>
3
4 <script>
5 td = document.getElementById("td");
6 sel = window.getSelection();
7 sel.setPosition(td, 1);
8 document.execCommand("Delete");
9 </script>