OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <body> | 2 <body> |
3 <div id="top" style="overflow: scroll; height: 500px; width: 500px; background-c
olor: blue"> | 3 <div id="top" style="overflow: scroll; height: 500px; width: 500px; background-c
olor: blue"> |
4 <div id="middle" style="position: absolute; height: 400px; width: 400px; backg
round-color: green"> | 4 <div id="middle" style="position: absolute; height: 400px; width: 400px; backg
round-color: green"> |
5 <div id="child" style="position: relative; height: 300px; width: 300px; back
ground-color: yellow; -webkit-backface-visibility: hidden"></div> | 5 <div id="child" style="position: relative; height: 300px; width: 300px; back
ground-color: yellow; -webkit-backface-visibility: hidden"></div> |
6 </div> | 6 </div> |
7 <div id="tall" style="position: relative; height: 5000px; width: 20px; backgro
und-color: salmon"></div> | 7 <div id="tall" style="position: relative; height: 5000px; width: 20px; backgro
und-color: salmon"></div> |
8 </div> | 8 </div> |
9 <div style="height: 5000px; width: 20px; background-color: papayawhip"></div> | 9 <div style="height: 5000px; width: 20px; background-color: papayawhip"></div> |
10 <script> | 10 <script> |
11 if (window.testRunner) { | 11 if (window.testRunner) { |
12 internals.settings.setAcceleratedCompositingForOverflowScrollEnabled(true); | 12 internals.settings.setPreferCompositingToLCDTextEnabled(true); |
13 | 13 |
14 testRunner.dumpAsText(); | 14 testRunner.dumpAsText(); |
15 testRunner.setCustomTextOutput( | 15 testRunner.setCustomTextOutput( |
16 internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_CLIP_A
ND_SCROLL_PARENTS)); | 16 internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_CLIP_A
ND_SCROLL_PARENTS)); |
17 } | 17 } |
18 </script> | 18 </script> |
OLD | NEW |