Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / pasteboard / insert-font-with-size-and-css.html
blob6d97e8ac469785cc8cf0bc553851163c1b017a4e
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <div id="container"><div contenteditable style="font-size: 25px;">WebKit</div></div>
5 <div id="content"><font size="7" style="font-size: 25px;">hello </font><font size="7" color="blue" style="font-size: 15px;">world </font></div>
6 <script src="../../resources/dump-as-markup.js"></script>
7 <script>
9 Markup.description('This tests inserting a font element with both font-size CSS property and size attribute.\n'
10 + 'WebKit should not strip just font-size property. Two instances of "hello world" should look identical to each other.');
12 Markup.dump('container', 'Insertion point');
14 var content = document.getElementById('content');
15 Markup.dump(content, 'Content to insert');
17 document.querySelector('div[contenteditable]').focus();
18 document.execCommand('InsertHTML', null, content.innerHTML);
20 Markup.dump('container', 'After insertion');
22 </script>
23 </body>
24 </html>