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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/execCommand/insert-paragraph-into-table.html

Issue 1820773002: getComputedStyle() should return used value for 'line-height' (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../../resources/testharness.js"></script> 2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script> 3 <script src="../../resources/testharnessreport.js"></script>
4 <div id="sample" contenteditable> 4 <div id="sample" contenteditable>
5 <table><td style="display:inline-block"><ruby><rt>a</rt></ruby></td></table> 5 <table><td style="display:inline-block"><ruby><rt>a</rt></ruby></td></table>
6 </div> 6 </div>
7 <div id="log"></div> 7 <div id="log"></div>
8 <script> 8 <script>
9 test(function() { 9 test(function() {
10 var selection = window.getSelection(); 10 var selection = window.getSelection();
11 var sample = document.getElementById('sample'); 11 var sample = document.getElementById('sample');
12 selection.collapse(sample, 2); 12 selection.collapse(sample, 2);
13 selection.extend(document.querySelector('rt').firstChild, 1); 13 selection.extend(document.querySelector('rt').firstChild, 1);
14 document.execCommand('InsertParagraph'); 14 document.execCommand('InsertParagraph');
15 assert_equals(sample.innerHTML.replace(/\n/g, ''), '<table><tbody><tr><td st yle="display:inline-block"><ruby><rt>a</rt></ruby></td></tr><tr><font size="1">< br></font></tr></tbody></table>'); 15 assert_equals(sample.innerHTML.replace(/\n/g, ''), '<table><tbody><tr><td st yle="display:inline-block"><ruby><rt>a</rt></ruby></td></tr><tr><font size="1">< span style="line-height: 12px;"><br></span></font></tr></tbody></table>');
16 }); 16 });
17 </script> 17 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698