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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/deleting/backspace-merge-into-block.html

Issue 2117663002: [Reland] Remove style spans to follow the styles of the block element (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 | third_party/WebKit/LayoutTests/editing/deleting/backspace-merge-into-list-item.html » ('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 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4 <script src="../assert_selection.js"></script>
5 <style>
6 p {
7 font-size: 20px;
8 line-height: 22px;
9 color: red;
10 }
11 </style>
12 <div id="log"></div>
13 <script>
14 test(() => {
15 assert_selection(
16 '<div contenteditable="true"><h1>Heading 1:</h1>^<p>|paragraph was merge d.</p></div>',
17 'delete',
18 '<div contenteditable="true"><h1>Heading 1:|paragraph was merged.</h1></ div>',
19 'Make a paragraph into a heading');
20 assert_selection(
21 '<div contenteditable="true"><pre>Preformatted text:</pre>^<p>|paragraph was merged.</p></div>',
22 'delete',
23 '<div contenteditable="true"><pre>Preformatted text:|paragraph was merge d.</pre></div>',
24 'Make a paragraph into a pre');
25 assert_selection(
26 '<div contenteditable="true"><ul><li>List Item:</li></ul>^<p>|paragraph was merged.</p></div>',
27 'delete',
28 '<div contenteditable="true"><ul><li>List Item:|paragraph was merged.</l i></ul></div>',
29 'Make a paragraph into a list');
30 assert_selection(
31 '<div contenteditable="true"><table><tbody><tr><td>Table:</td></tr></tbo dy></table>^<p>|paragraph was merged.</p></div>',
32 'delete',
33 '<div contenteditable="true"><table><tbody><tr><td>Table:|paragraph was merged.</td></tr></tbody></table></div>',
34 'Make a paragraph into a table');
35 }, 'merge into a block by backspace');
36 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/editing/deleting/backspace-merge-into-list-item.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698