LayoutTests:
[WebKit-https.git] / LayoutTests / editing / pasteboard / styled-element-markup.html
1 <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>
2 <div contenteditable="true" id="copy"><center><img src="../resources/abe.jpg"></center></div>
3 <div contenteditable="true" id="paste"></div>
4
5 <script>;
6 window.getSelection().setPosition(document.getElementById("copy"));
7 document.execCommand("SelectAll");
8 document.execCommand("Copy");
9 window.getSelection().setPosition(document.getElementById("paste"));
10 document.execCommand("Paste");
11 </script>