[css-grid] Scroll reset position when updating inner html on content
[WebKit-https.git] / LayoutTests / editing / deleting / delete-br-013.html
1 <html>
2     <head>
3         <script>
4             function test()
5             {
6                 var sel = window.getSelection();
7                 sel.setPosition(document.getElementById('dv'), 0);
8                 document.execCommand("Delete");
9             }
10         </script>
11     </head>
12     <body onload="test()">
13         <div>This tests that we only preserve an empty paragraph's style when moving paragraphs around if the selection is still in an empty paragraph after the move occurs.</div>
14         <div>The test passes if the text below is still underlined.</div><br>
15         <div contenteditable><span class="Apple-style-span" style="text-decoration: underline;">This text should be underlined</span><div id="dv"><br></div></div>
16     </body>
17 </html>