Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / pasteboard / paste-with-redundant-style.html
blob0e9937afe0d7332d9fd8a672ea352be933bc0fd3
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>
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="font-weight: bold;">WebKit</span></span><br>'
17 + '<em><span style="font-style: italic;">rocks</span></em>');
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 there should be exactly one span around WebKit.');
21 Markup.dump('test');
23 </script>
24 </body>
25 </html>