Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / pasteboard / 4930986-3.html
blob696b7d5b41e5098f4a6cd93eeb781c50d556d6f7
1 <html>
2 <head>
3 <style>
4 blockquote {
5 color: blue;
6 padding-left: 10px;
7 margin-left: 0px;
8 border-left: 2px solid blue;
10 </style>
11 </head>
12 <body>
13 <div id="description">This tests to make sure that an Apple-paste-as-quotation blockquote can override document default styles even if they are different than the insertion position.</div>
14 <div id="edit" contenteditable="true" style="color: red;"></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 have the blockquote color (blue). There should be no style spans around it.</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>