Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / pasteboard / avoid-copying-body-with-background.html
blobd6a97d54517400b6999759e6fcacb9e6fa571c06
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>
5 body {
6 background: transparent;
7 width: 500px;
8 height: 200px;
9 overflow-x: auto; overflow-y:auto;
10 text-decoration: underline;
12 </style>
13 </head>
14 <body style="color: rgb(51, 51, 51); " contenteditable="true">
15 <ul>
16 <li>hello, world <a href="http://www.webkit.org/">WebKit</a></li>
17 <li>Copied content</li>
18 </ul>
19 <script src="../../resources/dump-as-markup.js"></script>
20 <script>
22 document.body.focus();
23 document.execCommand('SelectAll', false, null);
24 document.execCommand('Copy', false, null);
25 getSelection().modify('Move', 'Forward', 'Character');
26 document.execCommand('Paste', false, null);
28 while (script = document.querySelector('script'))
29 script.parentNode.removeChild(script);
31 Markup.description('This test copies and pastes content inside a body with background and text-decoration properties. WebKit should not nest body.');
32 Markup.dump(document.body);
34 </script>
35 </body>
36 </html>