Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / transforms / selection-bounds-in-transformed-view.html
blob170c43e8cbac28f8b7dad2b6f729240ee6d61268
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>
7 <script>
8 onload = function() {
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 + ")";
22 </script>
23 </body>