Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / pasteboard / 4930986-1.html
blob237385fdc0c8d66738fff3dc3f62cf596611a017
1 <html>
2 <head>
3 <style>
4 blockquote {
5 color: blue;
6 border-left: 2px solid blue;
7 margin-left: 0px;
8 padding-left: 10px;
10 </style>
11 </head>
12 <body>
13 <div id="description">This tests to make sure that content that has the document default color is pasted as blue (or whatever the color for quoted content is) during a Paste as Quotation.</div>
14 <div id="edit" contenteditable="true"></div>
16 <script>
17 edit = document.getElementById("edit");
18 description = document.getElementById("description");
19 edit.focus();
20 document.execCommand("InsertHTML", false, "<blockquote class='Apple-paste-as-quotation'><span class='Apple-style-span' style='color: black;'>This text should be blue (it should not be wrapped in a style span).</span></blockquote>");
21 if (window.testRunner) {
22 window.testRunner.dumpAsText();
23 document.body.innerText = description.innerText + "\n" + edit.innerHTML;
25 </script>
26 </body>
27 </html>