OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <style> | 4 <style> |
5 .fixed { | 5 .fixed { |
6 position: fixed; | 6 position: fixed; |
7 width: 10px; | 7 width: 10px; |
8 height: 10px; | 8 height: 10px; |
9 background-color: silver; | 9 background-color: silver; |
10 } | 10 } |
11 ::-webkit-scrollbar { | 11 ::-webkit-scrollbar { |
12 width: 0px; | 12 width: 0px; |
13 height: 0px; | 13 height: 0px; |
14 } | 14 } |
15 </style> | 15 </style> |
16 <script> | 16 <script> |
17 if (window.testRunner) { | 17 if (window.testRunner) { |
18 testRunner.dumpAsText(); | 18 testRunner.dumpAsText(); |
19 testRunner.waitUntilDone(); | 19 testRunner.waitUntilDone(); |
20 } | 20 } |
21 if (window.internals && window.eventSender) { | 21 if (window.internals && window.eventSender) { |
22 window.internals.settings.setAcceleratedCompositingForFixedPositionEnabled(t
rue); | 22 window.internals.settings.setPreferCompositingToLCDTextEnabled(true); |
23 | 23 |
24 addEventListener("load", function() { | 24 addEventListener("load", function() { |
25 window.scrollTo(100,100); | 25 window.scrollTo(100,100); |
26 | 26 |
27 document.getElementById("layerTree").innerText = internals.layerTreeAsText
(document); | 27 document.getElementById("layerTree").innerText = internals.layerTreeAsText
(document); |
28 | 28 |
29 window.eventSender.setPageScaleFactor(0.5, 0, 0); | 29 window.eventSender.setPageScaleFactor(0.5, 0, 0); |
30 setTimeout(function() { | 30 setTimeout(function() { |
31 document.getElementById("layerTreeScaledDown").innerText = internals.lay
erTreeAsText(document); | 31 document.getElementById("layerTreeScaledDown").innerText = internals.lay
erTreeAsText(document); |
32 | 32 |
(...skipping 25 matching lines...) Expand all Loading... |
58 <div class="fixed" style="top: -100px"></div> | 58 <div class="fixed" style="top: -100px"></div> |
59 <!-- When applyPageScaleFactorInCompositor is true, this will have composited la
yer when scaled down; no layer when not scaled or scaled up. --> | 59 <!-- When applyPageScaleFactorInCompositor is true, this will have composited la
yer when scaled down; no layer when not scaled or scaled up. --> |
60 <div class="fixed"></div> | 60 <div class="fixed"></div> |
61 <div class="fixed" style="top: 0px; left: 1000px"></div> | 61 <div class="fixed" style="top: 0px; left: 1000px"></div> |
62 <!-- When applyPageScaleFactorInCompositor is true, this will have composited la
yer when not scaled and scaled down; no layer scaled up. --> | 62 <!-- When applyPageScaleFactorInCompositor is true, this will have composited la
yer when not scaled and scaled down; no layer scaled up. --> |
63 <div class="fixed" style="top: 0px; left: 600px"></div> | 63 <div class="fixed" style="top: 0px; left: 600px"></div> |
64 <!-- Always has composited layer. --> | 64 <!-- Always has composited layer. --> |
65 <div class="fixed" style="top: 0px; left: 0px"></div> | 65 <div class="fixed" style="top: 0px; left: 0px"></div> |
66 </body> | 66 </body> |
67 </html> | 67 </html> |
OLD | NEW |