[css-grid] Scroll reset position when updating inner html on content
[WebKit-https.git] / LayoutTests / editing / deleting / merge-paragraph-from-p-with-style.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style type="text/css">
5 p {color: red;}
6 </style>
7 </head>
8 <body>
9 <p id="description">This tests deleting line break before p.
10 "world" in "helloworld" should be italicized in red.</p>
11 <div id="test" contenteditable>
12 hello
13 <p style="font-style: italic;">world</p>
14 </div>
15 </div>
16 <script src="../editing.js"></script>
17 <script src="../../resources/dump-as-markup.js"></script>
18 <script>
19
20 function editingTest() {
21     moveSelectionForwardByLineCommand();
22     deleteCommand();
23
24     Markup.description(document.getElementById('description').textContent);
25     Markup.dump('test');
26 }
27
28 runEditingTest();
29 </script>
30 </body>
31 </html>