| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <style> | 4 <style> |
| 5 .fixed-no-z-index { | 5 .fixed-no-z-index { |
| 6 position: absolute; | 6 position: absolute; |
| 7 left: 10px; | 7 left: 10px; |
| 8 } | 8 } |
| 9 .fixed-with-z-index { | 9 .fixed-with-z-index { |
| 10 position: fixed; | 10 position: fixed; |
| 11 z-index: 1; | 11 z-index: 1; |
| 12 left: 10px; | 12 left: 10px; |
| 13 } | 13 } |
| 14 </style> | 14 </style> |
| 15 <script> | 15 <script> |
| 16 if (window.internals) { | 16 if (window.internals && window.eventSender) { |
| 17 window.internals.settings.setAcceleratedCompositingForFixedPositionEnabled(t
rue); | 17 window.internals.settings.setAcceleratedCompositingForFixedPositionEnabled(t
rue); |
| 18 window.internals.setPageScaleFactor(0.5, 0, 0); | 18 window.eventSender.setPageScaleFactor(0.5, 0, 0); |
| 19 } | 19 } |
| 20 if (window.testRunner) | 20 if (window.testRunner) |
| 21 testRunner.dumpAsText(true); | 21 testRunner.dumpAsText(true); |
| 22 </script> | 22 </script> |
| 23 </head> | 23 </head> |
| 24 <body style="width:2000px;height:2000px;"> | 24 <body style="width:2000px;height:2000px;"> |
| 25 <div class="fixed-no-z-index">TEST</div><br> | 25 <div class="fixed-no-z-index">TEST</div><br> |
| 26 <div class="fixed-with-z-index">TEST</div> | 26 <div class="fixed-with-z-index">TEST</div> |
| 27 </body> | 27 </body> |
| 28 </html> | 28 </html> |
| OLD | NEW |