blob: e7c939c797c5cff078075af18d9b3e59c17d0369 [file] [log] [blame]
<p>This tests that inherited block properties do not propigate to the editing style span.</p>
<div id="copy" contenteditable="true" style="margin: 0 0 0 50px; text-indent: -50px; font-weight: bold; text-align: center;">Some text that is bold.</div>
<div id="paste" contenteditable="true">Some text that is&nbsp;</div>
<script>
var copy = document.getElementById("copy");
window.getSelection().setBaseAndExtent(copy.firstChild, 18, copy, 1);
document.execCommand("Copy");
var paste = document.getElementById("paste");
window.getSelection().setBaseAndExtent(paste, 1, paste, 1);
document.execCommand("Paste");
document.execCommand("InsertText", false, "\nThis text should bold and left justified with \"Some text...\".");
</script>