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

Side by Side Diff: LayoutTests/editing/pasteboard/insert-font-weight.html

Issue 23075004: Fixes a crash when copying elements with font-weight lighter or bolder (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <div id="container" contenteditable="true"></div>
5 <div id="content"><span style="font-weight: lighter;">hello</span><span style="font-weight: bolder;">world</span></div>
6 <script src="../../resources/dump-as-markup.js"></script>
7 <script>
8 Markup.description('This tests inserting elements with font-weight s et to lighter and bolder values');
9
10 var content = document.getElementById('content');
11 Markup.dump(content, 'Content to insert');
12
13 document.querySelector('div[contenteditable]').focus();
14 document.execCommand('InsertHTML', null, content.innerHTML);
15
16 Markup.dump('container', 'After insertion');
17 </script>
18 </body>
19 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/editing/pasteboard/insert-font-weight-expected.txt » ('j') | Source/core/editing/EditingStyle.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698