1 <script src=
"../../resources/ahem.js"></script>
2 <body style=
"font: 20px Ahem; margin: 0;">
3 <div id=
"result" style=
"outline: solid blue; height: 100px; width: 100px; transform: translatez(0)"></div>
4 <div style=
"height: 900px"></div>
5 <div style=
"height: 100px;">target
</div>
6 <div style=
"height: 1000px;"></div>
9 if (window
.testRunner
&& window
.internals
) {
10 testRunner
.dumpAsText();
11 window
.internals
.setPageScaleFactor(2);
14 window
.internals
.settings
.setPreferCompositingToLCDTextEnabled(true);
15 document
.execCommand("FindString", false, "target");
16 document
.getElementById("result").innerText
= document
.scrollingElement
.scrollTop
=== 860 ? "PASS" : "FAIL (scrollTop:" + document
.scrollingElement
.scrollTop
+ ")";
18 window
.internals
.settings
.setPreferCompositingToLCDTextEnabled(false);
19 document
.execCommand("FindString", false, "target");
20 document
.getElementById("result").innerText
+= document
.scrollingElement
.scrollTop
=== 860 ? " PASS" : " FAIL (scrollTop:" + document
.scrollingElement
.scrollTop
+ ")";