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