OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <style type="text/css"> |
| 5 .MultipleTextDecorations { |
| 6 text-decoration: underline overline line-through; |
| 7 } |
| 8 </style> |
| 9 </head> |
| 10 <body> |
| 11 <div id="test" contenteditable="true"> |
| 12 <p>foo</p> |
| 13 <span id="spanToMerge" class="MultipleTextDecorations">bar</span> |
| 14 </div> |
| 15 <script src="../../resources/dump-as-markup.js"></script> |
| 16 <script> |
| 17 Markup.description('The span style should be preserved when merging a pragraph.\
n' |
| 18 + 'The test passes if the "bar" has underline, overline and line through.'); |
| 19 |
| 20 var spanToMerge = document.getElementById("spanToMerge"); |
| 21 spanToMerge.focus(); |
| 22 getSelection().collapse(spanToMerge, 0); |
| 23 document.execCommand("Delete"); |
| 24 Markup.dump(document.getElementById("test")); |
| 25 </script> |
| 26 </body> |
| 27 </html> |
OLD | NEW |