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

Side by Side Diff: LayoutTests/editing/pasteboard/paste-text-with-style-5.html

Issue 10391190: Merge 117361 - REGRESSION(r92823): WebKit strips font-weight: normal from b element when copying (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1132/
Patch Set: Created 8 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/pasteboard/paste-text-with-style-5-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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <body> 3 <body>
4 <p id="description">This tests copying and pasting text does not strip inline st yles that overrides UA style rules. 4 <p id="description">This tests copying and pasting text does not strip inline st yles that overrides UA style rules.
5 To manually test, copy and paste "hello world" below. The pasted text should be bolded.</p> 5 To manually test, copy and paste "hello world" below. The pasted text should be bolded.</p>
6 <div id="test" contenteditable><b style="font-weight: normal">hello world</b></d iv> 6 <div id="test" contenteditable><b style="font-weight: normal">hello world</b></d iv>
7 <script src="../../resources/dump-as-markup.js"></script> 7 <script src="../../resources/dump-as-markup.js"></script>
8 <script> 8 <script>
9 if (window.layoutTestController) 9 if (window.layoutTestController)
10 layoutTestController.dumpAsText(); 10 layoutTestController.dumpAsText();
11 11
12 Markup.description(document.getElementById('description').textContent); 12 Markup.description(document.getElementById('description').textContent);
13 13
14 document.getElementById('test').focus(); 14 document.getElementById('test').focus();
15 15
16 Markup.dump('test', 'Before copy-paste'); 16 Markup.dump('test', 'Before copy-paste');
17 document.execCommand('SelectAll', false, null); 17 document.execCommand('SelectAll', false, null);
18 document.execCommand('Copy', false, null); 18 document.execCommand('Copy', false, null);
19 document.execCommand('Paste', false, null); 19 document.execCommand('Paste', false, null);
20 Markup.dump('test', 'After copy-paste'); 20 Markup.dump('test', 'After copy-paste');
21 21
22 </script> 22 </script>
23 </body> 23 </body>
24 </html> 24 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/editing/pasteboard/paste-text-with-style-5-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698