Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / editing / pasteboard / styled-element-markup.html
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>
9
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>