blob: c4f578b79876bb27c4c7f2c2a361b8d79c7fcf76 [file] [log] [blame]
<html>
<head>
<style>
.editing {
font-size: 16px;
}
.explanation {
border: 2px solid blue;
padding: 12px;
font-size: 24px;
margin-bottom: 24px;
}
</style>
<script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
<script>
function editingTest() {
moveSelectionForwardByCharacterCommand();
insertParagraphCommand();
insertParagraphCommand();
typeCharacterCommand();
for (i = 0; i < 3; i++)
extendSelectionBackwardByLineCommand();
fontSizeCommand("7");
moveSelectionBackwardByCharacterCommand();
moveSelectionForwardByLineCommand();
insertParagraphCommand();
}
</script>
<title>Editing Test</title>
</head>
<body>
<div class="explanation">
You should see one "x" followed by two blank lines, then one more "x". The blank lines in between the characters
should be the same height. The second <b>must</b> be the same height as the first.
See: &lt;<a href="rdar://problem/3959727">rdar://problem/3959727</a>&gt; REGRESSION (Mail): Style not preserved on blank lines
</div>
<div contenteditable="true" id="root" style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
<div id="test" class="editing">x</div>
</div>
<script>
runDumpAsTextEditingTest();
</script>
</body>
</html>