[css-grid] Scroll reset position when updating inner html on content
[WebKit-https.git] / LayoutTests / editing / deleting / pruning-after-merge-1.html
1 <script>
2 if (window.testRunner) {
3      testRunner.dumpEditingCallbacks();
4      testRunner.dumpAsText();
5 }
6 </script>
7 <p>This tests the pruning that delete does when the it merges two paragraphs when the selection to delete spans multiple blocks.</p>
8 <p>You should see:<br>b<b>ar<br>baz</b></p>
9 <div id="test" contenteditable="true">boo<b><div>bar</div><div>baz</div></b></div>
10
11 <script>
12 var s = window.getSelection();
13 var e = document.getElementById("test");
14
15 s.setPosition(e, 0);
16 s.modify("move", "forward", "character");
17 s.modify("extend", "forward", "line");
18
19 document.execCommand("Delete");
20 </script>