5 em { text-decoration: underline; font-style: none; }
9 <div id=
"test" contenteditable
><b style=
"font-style: italic;"><br></b></div>
10 <script src=
"../../resources/dump-as-markup.js"></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.');