Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / pasteboard / paste-text-with-style-4.html
blob9b30c2ea5b83e73dd685b4cabf8e474cdcb61625
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <p id="description">This tests copying and pasting text does not remove non-editing style in the destination.
5 To manually test, copy "hello world" below and paste it in the box below. The blue border should stay after the paste.</p>
6 <div id="source" contenteditable><i>hello</i></div>
7 <div id="destination" style="padding:20px;" contenteditable><b style="border: solid 5px blue;padding: 5px;"><br></b></font></div>
8 <script src="../../resources/dump-as-markup.js"></script>
9 <script>
10 if (window.testRunner)
11 testRunner.dumpAsText();
13 Markup.description(document.getElementById('description').textContent);
15 Markup.dump('destination', 'Before copy');
17 document.getElementById('source').focus();
18 document.execCommand('SelectAll', false, null);
19 document.execCommand('Copy', false, null);
21 document.getElementById('destination').focus();
22 document.execCommand('Paste', false, null);
24 Markup.dump('destination', 'After paste');
26 </script>
27 </body>
28 </html>