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

Side by Side Diff: LayoutTests/editing/deleting/merge-div-with-inline-style.html

Issue 272753003: During editing, merge inline style with overriding other author styles (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 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/deleting/merge-div-with-inline-style-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 <head>
4 <style type="text/css">
5 .styleToMerge {
6 color: red;
7 font-size: 10px;
8 }
9 </style>
10 </head>
11 <body>
12 <div id="test" contenteditable="true">
13 <div>foo</div>
14 <div id="divToMerge" class="styleToMerge" style="color:blue;font-size:20px">bar< /div>
15 </div>
16 <script src="../../resources/dump-as-markup.js"></script>
17 <script>
18 Markup.description('The inline style should be applied when merging div element. \n'
19 + 'The test passes if "bar" has the blue color and 20px font-size.');
Yuta Kitamura 2014/05/29 06:48:25 nit: We generally use green to indicate a pass, so
20
21 var divToMerge = document.getElementById("divToMerge");
22 divToMerge.focus();
23 getSelection().collapse(divToMerge, 0);
24 document.execCommand("Delete");
25 Markup.dump(document.getElementById("test"));
26 </script>
27 </body>
Yuta Kitamura 2014/05/29 06:48:25 nit: Unnecessary space
28 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/editing/deleting/merge-div-with-inline-style-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698