| <!doctype html> |
| <script src="../../resources/testharness.js"></script> |
| <script src="../../resources/testharnessreport.js"></script> |
| <script src="../assert_selection.js"></script> |
| <script> |
| // This tests deletion of an empty line starting inside a <div> element, but |
| // ending outside that element (just before a <br>). In this case, the <div> |
| // has no content inside it, but a min-height style prevents it from collapsing. |
| // If the deletion is successful, the result should have two lines, and the |
| // insertion point should be on the second line, at the end of the editable |
| // area |
| selection_test( |
| [ |
| '<div contenteditable>', |
| '<div>a</div><div style="min-height:50px">^</div>|<br>', |
| '</div>', |
| ], |
| 'Delete', |
| [ |
| '<div contenteditable>', |
| '<div>a</div><div style="min-height:50px">|<br></div>', |
| '</div>', |
| ], |
| 'Delete an empty line starting inside <div> but ending outside it'); |
| </script> |