Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / pasteboard / contenteditable-pre.html
blob6329203ea126819835d9adf4184411a247d24aa6
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <p id="description">This test copies and pastes content inside pre that is an editing host. WebKit should not clone pre.
5 To manually test, copy and paste "hello" and then paste it into the boxes below.
6 WebKit should not clone pre (nest pre) and the pasted content should not have nested borders.</p>
7 <style> #container pre, #container div {border: solid 2px blue;} </style>
8 <div id="container">
9 <pre contenteditable>hello</pre>
10 <div contenteditable></div>
11 </div>
12 <script src="../../resources/dump-as-markup.js"></script>
13 <script>
15 Markup.description(document.getElementById('description').textContent);
17 var container = document.querySelector('#container pre');
18 container.focus();
19 document.execCommand('selectAll', false, null);
20 document.execCommand('copy', false, null);
21 document.execCommand('paste', false, null);
23 Markup.dump(container, "Pasting into pre; the pre should not be listed below");
25 var container = document.querySelector('#container div');
26 container.focus();
27 document.execCommand('paste', false, null);
29 Markup.dump(container, "Pasting into div; the pasted content should be in pre");
31 </script>
32 </body>
33 </html>