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

Side by Side Diff: LayoutTests/editing/deleting/merge-paragraph-from-span-with-style.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 .NonInheritableProperties {
6 background-color: yellow;
7 text-decoration: underline;
8 }
9 </style>
10 </head>
11 <body>
12 <div id="test" contenteditable="true">
13 <p>foo</p>
14 <span id="spanToMerge" class="NonInheritableProperties">bar</span>
15 </div>
16 <script src="../../resources/dump-as-markup.js"></script>
17 <script>
18 Markup.description('The span style should be preserved when merging a pragraph.\ n'
19 + 'The test passes if "bar" contatins the yellow background and it\'s underlined .');
20
21 var spanToMerge = document.getElementById("spanToMerge");
22 spanToMerge.focus();
23 getSelection().collapse(spanToMerge, 0);
24 document.execCommand("Delete");
25 Markup.dump(document.getElementById("test"));
26 </script>
27 </body>
28 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698