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

Side by Side Diff: LayoutTests/editing/style/background-color-retained.html

Issue 19477010: Background color applied on a selection of text is lost when the selection is deleted (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Review comments addressed Created 7 years, 2 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
« no previous file with comments | « no previous file | LayoutTests/editing/style/background-color-retained-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <div id="test" contenteditable>
5 <span style="background-color:green;">Delete this text and type in new text. Bac kground color should be retained.</span>
6 </div>
7 <script src="../../resources/dump-as-markup.js"></script>
8 <script>
9 Markup.description('Tests whether the background color is retained when all the text is deleted and new text is typed in.');
10
11 var testDiv = document.getElementById("test");
12 testDiv.focus();
13
14 document.execCommand("selectAll");
15 document.execCommand("Delete");
16 document.execCommand("InsertText", false, "New Text");
17
18 Markup.dump(testDiv);
19 </script>
20 </body>
21 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/editing/style/background-color-retained-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698