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 transform-origin: 30px 10px; | 5 transform-origin: 30px 10px; |
6 } | 6 } |
7 .target { | 7 .target { |
8 display: inline-block; | 8 display: inline-block; |
9 margin-top: 50px; | 9 margin-top: 50px; |
10 margin-bottom: 25px; | 10 margin-bottom: 25px; |
11 width: 50px; | 11 width: 50px; |
12 height: 50px; | 12 height: 50px; |
13 background: red; | 13 background: red; |
14 transform: scale(1.5); | 14 transform: scale(1.5); |
15 transform-origin: 10px 30px; | 15 transform-origin: 10px 30px; |
16 } | 16 } |
17 .expected { | 17 .expected { |
18 background: green; | 18 background: green; |
19 position: relative; | 19 position: relative; |
20 left: -50px; | 20 left: -50px; |
21 } | 21 } |
22 </style> | 22 </style> |
23 <body> | 23 <body> |
24 <script src="resources/interpolation-test.js"></script> | 24 <script src="resources/interpolation-test.js"></script> |
25 <script> | 25 <script> |
26 assertInterpolation({ | 26 assertInterpolation({ |
27 property: 'transform-origin', | 27 property: 'transform-origin', |
28 from: '', | 28 from: neutralKeyframe, |
29 to: '20px 20px', | 29 to: '20px 20px', |
30 }, [ | 30 }, [ |
31 {at: -0.3, is: '7px 33px'}, | 31 {at: -0.3, is: '7px 33px'}, |
32 {at: 0, is: '10px 30px'}, | 32 {at: 0, is: '10px 30px'}, |
33 {at: 0.3, is: '13px 27px'}, | 33 {at: 0.3, is: '13px 27px'}, |
34 {at: 0.6, is: '16px 24px'}, | 34 {at: 0.6, is: '16px 24px'}, |
35 {at: 1, is: '20px 20px'}, | 35 {at: 1, is: '20px 20px'}, |
36 {at: 1.5, is: '25px 15px'}, | 36 {at: 1.5, is: '25px 15px'}, |
37 ]); | 37 ]); |
38 | 38 |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 }, [ | 108 }, [ |
109 {at: -0.3, is: '-30% 20% 6.5px'}, | 109 {at: -0.3, is: '-30% 20% 6.5px'}, |
110 {at: 0, is: '0% 50% 5px'}, | 110 {at: 0, is: '0% 50% 5px'}, |
111 {at: 0.3, is: '30% 80% 3.5px'}, | 111 {at: 0.3, is: '30% 80% 3.5px'}, |
112 {at: 0.6, is: '60% 110% 2px'}, | 112 {at: 0.6, is: '60% 110% 2px'}, |
113 {at: 1, is: '100% 150% 0px'}, | 113 {at: 1, is: '100% 150% 0px'}, |
114 {at: 1.5, is: '150% 200% -2.5px'}, | 114 {at: 1.5, is: '150% 200% -2.5px'}, |
115 ]); | 115 ]); |
116 </script> | 116 </script> |
117 </body> | 117 </body> |
OLD | NEW |