Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / pasteboard / paste-text-with-style-5.html
blob5ff09a313c2a9ace409a73bd26257988ecda2acd
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <p id="description">This tests copying and pasting text does not strip inline styles that overrides UA style rules.
5 To manually test, copy and paste "hello world" below. The pasted text should not be bolded.</p>
6 <div id="test" contenteditable><b style="font-weight: normal">hello world</b></div>
7 <script src="../../resources/dump-as-markup.js"></script>
8 <script>
9 if (window.testRunner)
10 testRunner.dumpAsText();
12 Markup.description(document.getElementById('description').textContent);
14 document.getElementById('test').focus();
16 Markup.dump('test', 'Before copy-paste');
17 document.execCommand('SelectAll', false, null);
18 document.execCommand('Copy', false, null);
19 document.execCommand('Paste', false, null);
20 Markup.dump('test', 'After copy-paste');
22 </script>
23 </body>
24 </html>