Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / pasteboard / 4930986-2.html
blobe1ac132eb91d8c8a481bad8ca5fbd39c943d9708
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 <script>
12 function runTest() {
13 div = document.getElementById("edit");
14 div.focus();
15 document.execCommand("InsertHTML", false, "<blockquote class='Apple-paste-as-quotation'><span class='Apple-style-span' style='color: black;'><span class='Apple-style-span' style='color: red;'>This text should be red (it should be wrapped in a style span).</span></span></blockquote>");
16 if (window.testRunner) {
17 window.testRunner.dumpAsText();
18 document.body.innerText = document.getElementById("description").innerText + "\n" + div.innerHTML;
21 </script>
22 </head>
23 <body onload="runTest();">
24 <div id="description">This tests to make sure that content that is colored by the user is pasted with that color during a Paste as Quotation.</div>
25 <div id="edit" contenteditable="true"></div>
26 </body>
27 </html>