Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Side by Side Diff: LayoutTests/editing/deleting/merge-paragraph-from-span-with-multiple-text-decoration.html

Issue 22353004: background-color and text-decoration are not preserved when merging paragraphs (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698