Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / pasteboard / 5780697-2.html
blobca091f76f50880eb15c5da0a1a0cc935d029a15e
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <html>
3 <head>
4 <style>
5 p {
6 height: 1%;
7 overflow: visible;
9 </style>
10 </head>
11 <body>
12 <div id="description">This tests for a bug where copying content from a document in quirksmode and pasting it would produce overlapping text because of a height: 1%; overflow: visible; rule. To run manually, paste into a document not in quirksmode. The paragraphs should not overlap. When you inspect the source, the paragraphs should have pixel values for the height property.</div>
13 <div id="copy" contenteditable="true">
14 <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam interdum lacus id lectus. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Quisque pulvinar, libero eu tincidunt adipiscing, quam arcu pharetra libero, sed aliquet leo eros vitae sapien.</p>
15 <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam interdum lacus id lectus. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Quisque pulvinar, libero eu tincidunt adipiscing, quam arcu pharetra libero, sed aliquet leo eros vitae sapien.</p>
16 <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam interdum lacus id lectus. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Quisque pulvinar, libero eu tincidunt adipiscing, quam arcu pharetra libero, sed aliquet leo eros vitae sapien.</p>
17 </div>
19 <div id="paste" contenteditable="true"></div>
21 <script>
22 copy = document.getElementById("copy");
23 copy.focus();
24 document.execCommand("selectall");
25 document.execCommand("copy");
26 if (window.testRunner) {
27 window.testRunner.dumpAsText();
28 paste = document.getElementById("paste");
29 description = document.getElementById("description");
30 document.getElementById("paste").focus();
31 document.execCommand("paste");
32 document.body.innerText = description.innerText + "\n\n" + paste.innerHTML;
34 </script>
35 </body>
36 </html>