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>
8 <script src=
"../editing.js"></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";
25 results
.innerHTML
+= "<br>PASS";
28 runDumpAsTextEditingTest(false);