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 { |
| 12 width: 0px; |
| 13 height: 0px; |
| 14 } |
11 </style> | 15 </style> |
12 <script> | 16 <script> |
13 if (window.testRunner) { | 17 if (window.testRunner) { |
14 testRunner.dumpAsText(); | 18 testRunner.dumpAsText(); |
15 testRunner.waitUntilDone(); | 19 testRunner.waitUntilDone(); |
16 } | 20 } |
17 if (window.internals && window.eventSender) { | 21 if (window.internals && window.eventSender) { |
18 window.internals.settings.setAcceleratedCompositingForFixedPositionEnabled(t
rue); | 22 window.internals.settings.setAcceleratedCompositingForFixedPositionEnabled(t
rue); |
19 | 23 |
20 addEventListener("load", function() { | 24 addEventListener("load", function() { |
(...skipping 10 matching lines...) Expand all Loading... |
31 }, 0); | 35 }, 0); |
32 }, 0); | 36 }, 0); |
33 }, false); | 37 }, false); |
34 } | 38 } |
35 </script> | 39 </script> |
36 </head> | 40 </head> |
37 | 41 |
38 <!-- Fixed position elements may skip compositing without a scrollable | 42 <!-- Fixed position elements may skip compositing without a scrollable |
39 ancestor. To make sure this test covers the intended scenario, we force the | 43 ancestor. To make sure this test covers the intended scenario, we force the |
40 body element to be tall, so that the FrameView is scrolling. --> | 44 body element to be tall, so that the FrameView is scrolling. --> |
41 <body style="height: 4000px;"> | 45 <body style="width: 4000px; height: 4000px;"> |
42 <div style="height: 1000px"> | 46 <div style="height: 1000px"> |
43 Not scaled: | 47 Not scaled: |
44 <pre id="layerTree"></pre> | 48 <pre id="layerTree"></pre> |
45 Scale=0.5: | 49 Scale=0.5: |
46 <pre id="layerTreeScaledDown"></pre> | 50 <pre id="layerTreeScaledDown"></pre> |
47 Scale=1.5: | 51 Scale=1.5: |
48 <pre id="layerTreeScaledUp"></pre> | 52 <pre id="layerTreeScaledUp"></pre> |
49 </div> | 53 </div> |
50 <!-- The layer tree should always be the same, regardless of page scale, except
on platforms that enable the applyPageScaleFactorInCompositor Setting. --> | 54 <!-- The layer tree should always be the same, regardless of page scale, except
on platforms that enable the applyPageScaleFactorInCompositor Setting. --> |
51 <!-- No layer in any case. --> | 55 <!-- No layer in any case. --> |
52 <div class="fixed" style="top: -100px"></div> | 56 <div class="fixed" style="top: -100px"></div> |
53 <!-- When applyPageScaleFactorInCompositor is true, this will have a composited
layer when scaled down; no layer when not scaled or scaled up. --> | 57 <!-- When applyPageScaleFactorInCompositor is true, this will have a composited
layer when scaled down; no layer when not scaled or scaled up. --> |
54 <div class="fixed"></div> | 58 <div class="fixed"></div> |
55 <div class="fixed" style="top: 0px; left: 1000px"></div> | 59 <div class="fixed" style="top: 0px; left: 1000px"></div> |
56 <!-- When applyPageScaleFactorInCompositor is true, this will have composited la
yer when not scaled and scaled down; no layer scaled up. --> | 60 <!-- When applyPageScaleFactorInCompositor is true, this will have composited la
yer when not scaled and scaled down; no layer scaled up. --> |
57 <div class="fixed" style="top: 0px; left: 600px"></div> | 61 <div class="fixed" style="top: 0px; left: 600px"></div> |
58 <!-- Always has composited layer. --> | 62 <!-- Always has composited layer. --> |
59 <div class="fixed" style="top: 0px; left: 0px"></div> | 63 <div class="fixed" style="top: 0px; left: 0px"></div> |
60 </body> | 64 </body> |
61 </html> | 65 </html> |
OLD | NEW |