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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/pasteboard/paste-with-redundant-style.html

Issue 2685793002: Remove Apple-style-span CSS class support (Closed)
Patch Set: Update test cases Created 3 years, 10 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
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>
5 em { text-decoration: underline; font-style: none; }
6 </style>
7 </head>
8 <body>
9 <div id="test" contenteditable><b style="font-style: italic;"><br></b></div>
10 <script src="../../resources/dump-as-markup.js"></script>
11 <script>
12
13 document.getElementById('test').focus();
14 document.execCommand('insertHTML', false,
15 '<em style="font-style: none; text-decoration: underline; font-weight: bold; "><span style="color: black;">hello world</span></em><br>'
16 + '<span style="font-weight: bold;"><span class="Apple-style-span" style="fo nt-weight: bold;">WebKit</span></span><br>'
17 + '<em><span style="font-style: italic;">rocks</span></em>');
18
19 Markup.description('This tests pasting content with redundant inline style.\n'
20 + 'You should not see any inline styles other than font-weight: bold and the re should be exactly one span around WebKit.');
21 Markup.dump('test');
22
23 </script>
24 </body>
25 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698