OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <style> | 4 <style> |
5 .container { | 5 .container { |
6 width: 200px; | 6 width: 200px; |
7 height: 200px; | 7 height: 200px; |
8 position: absolute; | 8 position: absolute; |
9 overflow: scroll; | 9 overflow: scroll; |
10 -webkit-perspective: 100px; | 10 -webkit-perspective: 100px; |
11 -webkit-transform-style: preserve-3d; | 11 -webkit-transform-style: preserve-3d; |
12 } | 12 } |
13 | 13 |
14 .child { | 14 .child { |
15 position: absolute; | 15 position: absolute; |
16 top: 65px; | 16 top: 65px; |
17 width: 60px; | 17 width: 60px; |
18 height: 200px; | 18 height: 200px; |
19 } | 19 } |
20 | 20 |
21 .first { | 21 .first { |
22 left: 0px; | 22 left: 0px; |
23 background-color: green; | 23 background-color: green; |
24 -webkit-transform: translateZ(10px); | 24 transform: translateZ(10px); |
25 } | 25 } |
26 | 26 |
27 .second { | 27 .second { |
28 left: 65px; | 28 left: 65px; |
29 background-color: blue; | 29 background-color: blue; |
30 -webkit-transform: translateZ(20px); | 30 transform: translateZ(20px); |
31 } | 31 } |
32 </style> | 32 </style> |
33 <script> | 33 <script> |
34 if (window.testRunner) | 34 if (window.testRunner) |
35 testRunner.dumpAsText(); | 35 testRunner.dumpAsText(); |
36 | 36 |
37 if (window.internals) { | 37 if (window.internals) { |
38 window.internals.settings.setPreferCompositingToLCDTextEnabled(true); | 38 window.internals.settings.setPreferCompositingToLCDTextEnabled(true); |
39 } | 39 } |
40 | 40 |
(...skipping 12 matching lines...) Expand all Loading... |
53 window.onload = runTest; | 53 window.onload = runTest; |
54 </script> | 54 </script> |
55 </head> | 55 </head> |
56 <body> | 56 <body> |
57 <div class="container"> | 57 <div class="container"> |
58 <div class="child first"> </div> | 58 <div class="child first"> </div> |
59 <div class="child second"> </div> | 59 <div class="child second"> </div> |
60 </div> | 60 </div> |
61 </body> | 61 </body> |
62 </html> | 62 </html> |
OLD | NEW |