OLD | NEW |
1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
2 <!-- | 2 <!-- |
3 This test checks that when overlay scrollbars are repositioned due to | 3 This test checks that when overlay scrollbars are repositioned due to |
4 accelerated overflow scrolling, that their position accounts for any | 4 accelerated overflow scrolling, that their position accounts for any |
5 intervening, composited ancestors. The test is working correctly if the | 5 intervening, composited ancestors. The test is working correctly if the |
6 scrollbars are correctly positioned on top of the scroller and the scrolled | 6 scrollbars are correctly positioned on top of the scroller and the scrolled |
7 contents. | 7 contents. |
8 --> | 8 --> |
9 <style> | 9 <style> |
10 #scroller { | 10 #scroller { |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 <div id="fixed"></div> | 44 <div id="fixed"></div> |
45 <div class="scrolled"></div> | 45 <div class="scrolled"></div> |
46 <div class="scrolled"></div> | 46 <div class="scrolled"></div> |
47 <div class="scrolled"></div> | 47 <div class="scrolled"></div> |
48 <div class="scrolled"></div> | 48 <div class="scrolled"></div> |
49 </div> | 49 </div> |
50 </div> | 50 </div> |
51 <script> | 51 <script> |
52 if (window.internals) { | 52 if (window.internals) { |
53 window.internals.settings.setOverlayScrollbarsEnabled(true); | 53 window.internals.settings.setOverlayScrollbarsEnabled(true); |
54 window.internals.settings.setAcceleratedCompositingForOverflowScrollEnabled(
true); | 54 window.internals.settings.setPreferCompositingToLCDTextEnabled(true); |
55 } | 55 } |
56 | 56 |
57 if (window.testRunner) | 57 if (window.testRunner) |
58 window.testRunner.dumpAsTextWithPixelResults(); | 58 window.testRunner.dumpAsTextWithPixelResults(); |
59 | 59 |
60 onload = function() { | 60 onload = function() { |
61 if (window.internals && window.testRunner) | 61 if (window.internals && window.testRunner) |
62 window.testRunner.setCustomTextOutput(window.internals.layerTreeAsText(d
ocument)); | 62 window.testRunner.setCustomTextOutput(window.internals.layerTreeAsText(d
ocument)); |
63 }; | 63 }; |
64 </script> | 64 </script> |
OLD | NEW |