| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <style> | 4 <style> |
| 5 ::-webkit-scrollbar { |
| 6 width: 0px; |
| 7 height: 0px; |
| 8 } |
| 5 .fixed-no-z-index { | 9 .fixed-no-z-index { |
| 6 position: absolute; | 10 position: absolute; |
| 7 left: 10px; | 11 left: 10px; |
| 8 transform: translateX(10px) rotate(20deg); | 12 transform: translateX(10px) rotate(20deg); |
| 9 } | 13 } |
| 10 .fixed-with-z-index { | 14 .fixed-with-z-index { |
| 11 position: fixed; | 15 position: fixed; |
| 12 z-index: 1; | 16 z-index: 1; |
| 13 left: 10px; | 17 left: 10px; |
| 14 transform: translateX(10px) rotate(20deg); | 18 transform: translateX(10px) rotate(20deg); |
| 15 } | 19 } |
| 16 </style> | 20 </style> |
| 17 <script> | 21 <script> |
| 18 if (window.internals && window.eventSender) { | 22 if (window.internals && window.eventSender) { |
| 19 window.internals.settings.setPreferCompositingToLCDTextEnabled(true); | 23 window.internals.settings.setPreferCompositingToLCDTextEnabled(true); |
| 20 window.internals.setPageScaleFactor(2); | 24 window.internals.setPageScaleFactor(2); |
| 21 } | 25 } |
| 22 if (window.testRunner) | 26 if (window.testRunner) |
| 23 testRunner.dumpAsTextWithPixelResults(); | 27 testRunner.dumpAsTextWithPixelResults(); |
| 24 </script> | 28 </script> |
| 25 </head> | 29 </head> |
| 26 <body style="width:2000px;height:2000px;"> | 30 <body style="width:2000px;height:2000px;"> |
| 27 <div class="fixed-no-z-index">TEST</div><br> | 31 <div class="fixed-no-z-index">TEST</div><br> |
| 28 <div class="fixed-with-z-index">TEST</div> | 32 <div class="fixed-with-z-index">TEST</div> |
| 29 </body> | 33 </body> |
| 30 </html> | 34 </html> |
| OLD | NEW |