Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / inserting / page-zoom-font-size.html
blob0bcc64f693c88bc5f503aadf50e431f85e74ce8c
1 <!DOCTYPE HTML FORCE QUIRKSMODE>
2 <body style="zoom: 200%">
3 <p style="font-size:16px">Test to make sure that pasting text with a font size into a quirks mode
4 document that is zoomed does not alter the font size.</p>
5 <div contentEditable="true" id="test">Paste Here: </div>
6 <div id="results"></div>
7 </body>
8 <script src="../editing.js"></script>
9 <script>
10 function editingTest()
12 var target = document.getElementById("test");
13 var selection = window.getSelection();
14 selection.collapse(target, target.childNodes.length);
15 document.execCommand("insertHTML", false, "<span style='font-size: 16px' class='Apple-style-span'>This font is size 16px.</span>");
17 var results = document.getElementById("results");
19 results.innerText = target.innerHTML;
21 results.innerHTML += "<br>document.compatMode: " + document.compatMode;
22 if (target.innerHTML.indexOf("font-size: 16px") == -1) {
23 results.innerHTML += "<br>FAIL";
24 } else
25 results.innerHTML += "<br>PASS";
28 runDumpAsTextEditingTest(false);
29 </script>