OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <div style="transform: translateZ(0); | 2 <div style="transform: translateZ(0); |
3 height: 10px; | 3 height: 10px; |
4 width: 10px; | 4 width: 10px; |
5 position: absolute; | 5 position: absolute; |
6 background-color: red; | 6 background-color: red; |
7 z-index: -1"></div> | 7 z-index: -1"></div> |
8 <div style="margin-left: 100px; | 8 <div style="margin-left: 100px; |
9 margin-top: 100px; | 9 margin-top: 100px; |
10 height: 300px; | 10 height: 300px; |
11 width: 300px; | 11 width: 300px; |
12 overflow-y: scroll;"> | 12 overflow-y: scroll;"> |
13 <div style="position: relative"> | 13 <div style="position: relative"> |
14 <div style="position: relative; | 14 <div style="position: relative; |
15 height: 1000px; | 15 height: 1000px; |
16 background-color: lightblue"> | 16 background-color: lightblue"> |
17 </div> | 17 </div> |
18 </div> | 18 </div> |
19 </div> | 19 </div> |
20 <script> | 20 <script> |
21 if (window.testRunner) { | 21 if (window.testRunner) { |
22 testRunner.dumpAsText(); | 22 testRunner.dumpAsText(); |
23 internals.settings.setAcceleratedCompositingForOverflowScrollEnabled(true); | 23 internals.settings.setPreferCompositingToLCDTextEnabled(true); |
24 internals.settings.setLayerSquashingEnabled(true); | 24 internals.settings.setLayerSquashingEnabled(true); |
25 testRunner.setCustomTextOutput(internals.layerTreeAsText(document)); | 25 testRunner.setCustomTextOutput(internals.layerTreeAsText(document)); |
26 } | 26 } |
27 </script> | 27 </script> |
OLD | NEW |