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