blob: 0694e2acd14f2ac7c8a5197e44bb3e85f522f4a1 [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<div id="container" contenteditable="true">This shouldn't be underlined.<div id="div" style="text-decoration: underline;">This should be underlined.</div></div>
<script src="../../resources/dump-as-markup.js"></script>
<script>
var div = document.getElementById("div");
var range = document.createRange();
range.setStart(div, 0);
range.setEnd(div, 0);
var sel = window.getSelection();
sel.addRange(range);
document.execCommand("Delete", false, null);
Markup.description('This tests for a bug where underlined content would lose its underlining' +
'when deleting the line break before the paragraph that contained it.');
Markup.dump('container');
</script>
</body>
</html>