OLD | NEW |
| (Empty) |
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; | |
9 } | |
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) d
uring a Paste as Quotation.</div> | |
14 <div id="edit" contenteditable="true"></div> | |
15 | |
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-quo
tation'><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; | |
24 } | |
25 </script> | |
26 </body> | |
27 </html> | |
OLD | NEW |