| <!DOCTYPE HTML FORCE QUIRKSMODE> |
| <body style="zoom: 200%"> |
| <p style="font-size:16px">Test to make sure that pasting text with a font size into a quirks mode |
| document that is zoomed does not alter the font size.</p> |
| <div contentEditable="true" id="test">Paste Here: </div> |
| <div id="results"></div> |
| </body> |
| <script src="../editing.js"></script> |
| <script> |
| function editingTest() |
| { |
| var target = document.getElementById("test"); |
| var selection = window.getSelection(); |
| selection.setPosition(target, 1); |
| document.execCommand("insertHTML", false, "<span style='font-size: 16px' class='Apple-style-span'>This font is size 16px.</span>"); |
| |
| var results = document.getElementById("results"); |
| |
| results.innerText = target.innerHTML; |
| |
| results.innerHTML += "<br>document.compatMode: " + document.compatMode; |
| if (target.innerHTML.indexOf("font-size: 16px") == -1) { |
| results.innerHTML += "<br>FAIL"; |
| } else |
| results.innerHTML += "<br>PASS"; |
| } |
| |
| runDumpAsTextEditingTest(false); |
| </script> |