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

Side by Side Diff: LayoutTests/editing/execCommand/format-block-with-block.html

Issue 101933003: Preserving inline style of the replaced block element for FormatBlock('execCommand'). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebaselining Created 7 years 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/execCommand/format-block-with-block-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 <script src="../../resources/dump-as-markup.js"></script>
5 <div id="testBlock" contenteditable>
6 <div style="color: green">hello</div>
7 </div>
8 <div id="testBlockWithBR" contenteditable>
9 <div style="color: green"><br></div>
10 </div>
11 <div id="testInline" contenteditable>
12 <span style="color: green">hello</span>
13 </div>
14 <script>
15 function verify(id)
16 {
17 var testElement = document.getElementById(id);
18 window.getSelection().selectAllChildren(testElement);
19
20 Markup.dump(testElement, 'Before FormatBlock');
21 document.execCommand('FormatBlock', false, 'h1');
22 Markup.dump(testElement, 'After FormatBlock');
23 }
24 Markup.description("This test verifies that formatBlock adds the containing bloc k element's inline style to the block-style element that replaces it.");
25
26 verify("testBlock");
27 verify("testBlockWithBR");
28 verify("testInline");
29
30 </script>
31 </body>
32 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/editing/execCommand/format-block-with-block-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698