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 } | 12 } |
9 .fixed-with-z-index { | 13 .fixed-with-z-index { |
10 position: fixed; | 14 position: fixed; |
11 z-index: 1; | 15 z-index: 1; |
12 left: 10px; | 16 left: 10px; |
13 } | 17 } |
14 </style> | 18 </style> |
15 <script> | 19 <script> |
16 if (window.internals && window.eventSender) { | 20 if (window.internals && window.eventSender) { |
17 window.internals.settings.setPreferCompositingToLCDTextEnabled(true); | 21 window.internals.settings.setPreferCompositingToLCDTextEnabled(true); |
18 window.internals.setPageScaleFactorLimits(0.5, 0.5); | 22 window.internals.setPageScaleFactorLimits(0.5, 0.5); |
19 window.internals.setPageScaleFactor(0.5); | 23 window.internals.setPageScaleFactor(0.5); |
20 } | 24 } |
21 if (window.testRunner) | 25 if (window.testRunner) |
22 testRunner.dumpAsTextWithPixelResults(); | 26 testRunner.dumpAsTextWithPixelResults(); |
23 </script> | 27 </script> |
24 </head> | 28 </head> |
25 <body style="width:2000px;height:2000px;"> | 29 <body style="width:2000px;height:2000px;"> |
26 <div class="fixed-no-z-index">TEST</div><br> | 30 <div class="fixed-no-z-index">TEST</div><br> |
27 <div class="fixed-with-z-index">TEST</div> | 31 <div class="fixed-with-z-index">TEST</div> |
28 </body> | 32 </body> |
29 </html> | 33 </html> |
OLD | NEW |