| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <meta charset="UTF-8"> | 2 <meta charset="UTF-8"> |
| 3 <style> | 3 <style> |
| 4 .parent { | 4 .parent { |
| 5 perspective-origin: 30px 10px; | 5 perspective-origin: 30px 10px; |
| 6 } | 6 } |
| 7 .target { | 7 .target { |
| 8 display: inline-block; | 8 display: inline-block; |
| 9 -webkit-perspective: 50; | 9 -webkit-perspective: 50; |
| 10 perspective: 50; | 10 perspective: 50; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 } | 28 } |
| 29 </style> | 29 </style> |
| 30 <body> | 30 <body> |
| 31 <template id="target-template"> | 31 <template id="target-template"> |
| 32 <div><div class="transformed"></div></div> | 32 <div><div class="transformed"></div></div> |
| 33 </template> | 33 </template> |
| 34 <script src="resources/interpolation-test.js"></script> | 34 <script src="resources/interpolation-test.js"></script> |
| 35 <script> | 35 <script> |
| 36 assertInterpolation({ | 36 assertInterpolation({ |
| 37 property: 'perspective-origin', | 37 property: 'perspective-origin', |
| 38 from: '', | 38 from: neutralKeyframe, |
| 39 to: '20px 20px', | 39 to: '20px 20px', |
| 40 }, [ | 40 }, [ |
| 41 {at: -0.3, is: '7px 33px'}, | 41 {at: -0.3, is: '7px 33px'}, |
| 42 {at: 0, is: '10px 30px'}, | 42 {at: 0, is: '10px 30px'}, |
| 43 {at: 0.3, is: '13px 27px'}, | 43 {at: 0.3, is: '13px 27px'}, |
| 44 {at: 0.6, is: '16px 24px'}, | 44 {at: 0.6, is: '16px 24px'}, |
| 45 {at: 1, is: '20px 20px'}, | 45 {at: 1, is: '20px 20px'}, |
| 46 {at: 1.5, is: '25px 15px'}, | 46 {at: 1.5, is: '25px 15px'}, |
| 47 ]); | 47 ]); |
| 48 | 48 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 }, [ | 92 }, [ |
| 93 {at: -0.3, is: '-30% 20%'}, | 93 {at: -0.3, is: '-30% 20%'}, |
| 94 {at: 0, is: '0% 50%'}, | 94 {at: 0, is: '0% 50%'}, |
| 95 {at: 0.3, is: '30% 80%'}, | 95 {at: 0.3, is: '30% 80%'}, |
| 96 {at: 0.6, is: '60% 110%'}, | 96 {at: 0.6, is: '60% 110%'}, |
| 97 {at: 1, is: '100% 150%'}, | 97 {at: 1, is: '100% 150%'}, |
| 98 {at: 1.5, is: '150% 200%'} | 98 {at: 1.5, is: '150% 200%'} |
| 99 ]); | 99 ]); |
| 100 </script> | 100 </script> |
| 101 </body> | 101 </body> |
| OLD | NEW |