[css-grid] Scroll reset position when updating inner html on content
[WebKit-https.git] / LayoutTests / editing / deleting / delete-br-012.html
1 <html> 
2 <head>
3 <style>
4 .editing { 
5     border: 2px solid red; 
6     padding: 12px; 
7     font-size: 24px; 
8 }
9 </style>
10 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
11 <script src="../../resources/dump-as-markup.js"></script>
12 <script>
13
14 Markup.waitUntilDone();
15
16 function test() {
17     Markup.description("This tests pressing delete key to remove empty quoted line places cursor at the right location. rdar://problem/4813973");
18     window.getSelection().setPosition(document.getElementById('test'), 0);
19     deleteCommand();
20     Markup.dump(document.body);
21     Markup.notifyDone();
22 }
23
24 </script>
25 <title>Editing Test</title> 
26 </head> 
27 <body onload="test()" contenteditable id="root">
28 <div class="editing">
29     <div style="border-style:solid; border-color:black;">
30         hello
31     </div>
32     <br>
33 </div>
34 <div id="test" style="border-style:solid; border-color:blue;">
35     <br>
36 </div>
37 </body>
38 </html>