[css-grid] Scroll reset position when updating inner html on content
[WebKit-https.git] / LayoutTests / editing / deleting / smart-delete-across-editable-boundaries.html
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <script src="../../resources/dump-as-markup.js"></script>
5 <div contenteditable="true" id="div">foo<span contenteditable="false"> bar</span></div>
6 <script>
7 if (window.internals)
8     internals.settings.setEditingBehavior('mac');
9 var div = document.getElementById("div");
10 var sel = window.getSelection();
11 sel.setPosition(div, 0);
12 sel.modify("extend", "forward", "word");
13 document.execCommand("Delete");
14 Markup.description("This tests for a bug where expansion for smart delete would not consider editable boundaries. Only 'foo' should be deleted. You should see ' bar'. <radr://problem/5390681>");
15 Markup.dump(div);
16 </script>
17 </body>
18 </html>