REGRESSION (r179168): Characters overlap after resizing the font on the copy-pasted...
[WebKit-https.git] / LayoutTests / editing / pasteboard / cjk-line-height.html
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <div id=editor contenteditable><font face="Hiragino Kaku Gothic ProN">hello</font></div>
5 <script src="../../resources/dump-as-markup.js"></script>
6 <script>
7
8 Markup.description('This tests copying and pasting text with a font that influences the used line-height value.\n'
9  + 'To manually test, copy and paste the selected content below. WebKit should not generate line-height property in the pasted content.')
10
11 var editor = document.getElementById('editor');
12 editor.focus();
13 document.execCommand('selectAll', false, null);
14
15 Markup.noAutoDump();
16 function dumpEditor() {
17     Markup.dump(editor);
18     Markup.notifyDone();
19 }
20
21 if (document.queryCommandEnabled('paste')) {
22     document.execCommand('copy', false, null);
23     document.execCommand('paste', false, null);
24     dumpEditor();
25 } else
26     document.onpaste = function () { setTimeout(dumpEditor, 0); }
27
28 </script>
29 </body>
30 </html>