2008-11-04 Anders Carlsson <andersca@apple.com>
[webkit/qt.git] / LayoutTests / editing / deleting / delete-line-016.html
blob5fe8dfbd0088cfc2bce6b962bd2c4ba85124ec36
1 <html>
3 <head>
4 <script src="../editing.js"></script>
5 <script>
6 function editingTest() {
7 extendSelectionForwardByLineCommand();
8 deleteCommand();
10 </script>
11 </head>
13 <body>
15 <p>This tests deletion of an empty line starting inside a &lt;div&gt; element,
16 but ending outside that element (just before a &lt;br&gt;). In this case, the
17 &lt;div&gt; has no content inside it, but a min-height style prevents it from
18 collapsing. If the deletion is successful, the result should have two lines,
19 and the insertion point should be on the second line, at the end of the editable area.</p>
21 <div contenteditable>
22 <div>a</div><div id="test" style="min-height:50px"></div><br>
23 </div>
25 </body>
27 <script>runEditingTest()</script>
29 </html>