| OLD | NEW |
| 1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
| 2 <style> | 2 <style> |
| 3 .scroller { | 3 .scroller { |
| 4 width: 100px; | 4 width: 100px; |
| 5 height: 100px; | 5 height: 100px; |
| 6 overflow: auto; | 6 overflow: auto; |
| 7 border: 1px solid black; | 7 border: 1px solid black; |
| 8 } | 8 } |
| 9 .scrolled { | 9 .scrolled { |
| 10 width: 40px; | 10 width: 40px; |
| 11 height: 40px; | 11 height: 40px; |
| 12 background: green; | 12 background: green; |
| 13 } | 13 } |
| 14 .fixed { | 14 .fixed { |
| 15 width: 100px; | 15 width: 100px; |
| 16 height: 30px; | 16 height: 30px; |
| 17 position: fixed; | 17 position: fixed; |
| 18 background: blue; | 18 background: blue; |
| 19 -webkit-backface-visibility: hidden; | 19 -webkit-backface-visibility: hidden; |
| 20 } | 20 } |
| 21 </style> | 21 </style> |
| 22 <script> | 22 <script> |
| 23 if (window.testRunner) | 23 if (window.testRunner) |
| 24 testRunner.dumpAsTextWithPixelResults(); | 24 testRunner.dumpAsTextWithPixelResults(); |
| 25 | 25 |
| 26 if (window.internals) | 26 if (window.internals) |
| 27 window.internals.settings.setAcceleratedCompositingForOverflowScrollEnab
led(true); | 27 window.internals.settings.setPreferCompositingToLCDTextEnabled(true); |
| 28 </script> | 28 </script> |
| 29 <div class="fixed"></div> | 29 <div class="fixed"></div> |
| 30 <div class="scroller"> | 30 <div class="scroller"> |
| 31 <div class="scrolled"></div> | 31 <div class="scrolled"></div> |
| 32 <div class="scrolled"></div> | 32 <div class="scrolled"></div> |
| 33 <div class="scrolled"></div> | 33 <div class="scrolled"></div> |
| 34 <div class="scrolled"></div> | 34 <div class="scrolled"></div> |
| 35 </div> | 35 </div> |
| OLD | NEW |