Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / deleting / merge-paragraph-from-span-with-multiple-text-decoration.html
blob0bcf3abcb33c34c8e2663bc193725e3dea0b3669
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style type="text/css">
5 .MultipleTextDecorations {
6 text-decoration: underline overline line-through;
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.');
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>