Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / pasteboard / styled-element-markup.html
blobd18590c3d80b80dd9f601d2314c35ea0b707afa5
1 <script>
2 if (window.testRunner)
3 testRunner.dumpEditingCallbacks();
4 </script>
5 <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>
6 <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>
7 <div contenteditable="true" id="copy"><center><img src="../resources/abe.png"></center></div>
8 <div contenteditable="true" id="paste"></div>
10 <script>;
11 window.getSelection().collapse(document.getElementById("copy"));
12 document.execCommand("SelectAll");
13 document.execCommand("Copy");
14 window.getSelection().collapse(document.getElementById("paste"));
15 document.execCommand("Paste");
16 </script>