blob: 1f7e3304d51425a2d120fbdb9197d665ee4713d5 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style>
ul item {display:list-item; margin-left: 25px;}
</style>
</head>
<body>
<div id="container" contenteditable="true">
<p>Paragraph before list.</p>
<ul>
<item>First Item</item>
<item id="target">Second Item</item>
</ul>
<p>Paragraph after list.</p>
</div>
<script src="../../resources/dump-as-markup.js"></script>
<script>
Markup.description('This test verifies that inserting paragraph twice at the end of last listitem created with custom tag and display:list-item does not remove entire list.\nExpected behavior is list should not be removed and one empty line should get added.');
getSelection().collapse(document.getElementById('target'), 1);
Markup.dump('container', 'Initial');
document.execCommand("InsertParagraph");
Markup.dump('container', 'After inserting first paragraph');
document.execCommand("InsertParagraph");
Markup.dump('container', 'After inserting second paragraph');
</script>
</body>
</html>