blob: ddf2b4dd9fde6ca6a892ac7cef6a01f0c8d0ea9c [file] [log] [blame]
<html>
<head>
<script>
if (window.layoutTestController)
layoutTestController.dumpEditingCallbacks();
</script>
<style>
.editing {
border: 2px solid red;
font-size: 24px;
}
.explanation {
border: 2px solid blue;
padding: 12px;
font-size: 24px;
margin-bottom: 24px;
}
.scenario { margin-bottom: 16px;}
.scenario:first-line { font-weight: bold; margin-bottom: 16px;}
.expected-results:first-line { font-weight: bold }
</style>
<script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
<script>
function editingTest() {
setSelectionCommand(document.getElementById("test"),0,document.getElementById("test"),5);
copyCommand();
pasteCommand();
}
</script>
<title>Editing Test</title>
</head>
<body>
When copying some text, under certain circumstances, empty style (or font) tags are created. This test checks that there is no empty &lt;font&gt; tag after 'foo' and before 'bar'.
<div contenteditable id="root">
<div id="test" class="editing">
foo
<div style="color: rgb(255, 0, 0);" >
<div>bar</div>
</div>
</div>
</div>
<script>
editingTest();
</script>
</body>
</html>