blob: d18590c3d80b80dd9f601d2314c35ea0b707afa5 [file] [log] [blame]
<script>
if (window.testRunner)
testRunner.dumpEditingCallbacks();
</script>
<p>This tests copy/paste of styled elements, like images. The image in the region below should be centered after its copied and pasted.</p>
<p><b>This demonstrates a bug: createMarkup puts the text-align property on the image, which doesn't center it, so its left aligned on paste.</b></p>
<div contenteditable="true" id="copy"><center><img src="../resources/abe.png"></center></div>
<div contenteditable="true" id="paste"></div>
<script>;
window.getSelection().collapse(document.getElementById("copy"));
document.execCommand("SelectAll");
document.execCommand("Copy");
window.getSelection().collapse(document.getElementById("paste"));
document.execCommand("Paste");
</script>