[css-grid] Scroll reset position when updating inner html on content
[WebKit-https.git] / LayoutTests / editing / deleting / merge-paragraph-contatining-noneditable.html
1 <!DOCTYPE html>
2 <html>
3 <body>
4     <div id="container" contenteditable="true">
5         <p>First Paragraph.</p>
6         <p id="paragraph">First<span class="noteditable" contenteditable="false">Second</span>Third</p>
7     </div>
8     <script src="../../resources/dump-as-markup.js"></script>
9     <script>
10         Markup.description('This test verifies merging of second paragraph containing non-editable element with first paragraph does not cause loss of element in second paragraph.\nExpected behavior is on hitting backspace all three word (First, Second and Third) should be visible and merged at the end of first line.');
11
12         getSelection().collapse(document.getElementById("paragraph"), 0);
13         Markup.dump('container', 'Before');
14
15         document.execCommand("Delete");
16         Markup.dump('container', 'After');
17     </script>
18 </body>
19 </html>