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