| OLD | NEW |
| (Empty) |
| 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; | |
| 9 } | |
| 10 </style> | |
| 11 </head> | |
| 12 <body> | |
| 13 <div id="description">This tests to make sure that an Apple-paste-as-quotation b
lockquote can override document default styles even if they are different than t
he insertion position.</div> | |
| 14 <div id="edit" contenteditable="true" style="color: red;"></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 hav
e 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; | |
| 24 } | |
| 25 </script> | |
| 26 </body> | |
| 27 </html> | |
| OLD | NEW |