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 object-position: 30px 10px; | 5 object-position: 30px 10px; |
6 } | 6 } |
7 .target { | 7 .target { |
8 position: relative; | 8 position: relative; |
9 width: 100px; | 9 width: 100px; |
10 height: 100px; | 10 height: 100px; |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 {at: -0.3, is: '35% 65%'}, | 126 {at: -0.3, is: '35% 65%'}, |
127 {at: 0, is: '50% 50%'}, | 127 {at: 0, is: '50% 50%'}, |
128 {at: 0.5, is: '75% 25%'}, | 128 {at: 0.5, is: '75% 25%'}, |
129 {at: 1, is: '100% 0%'}, | 129 {at: 1, is: '100% 0%'}, |
130 {at: 1.5, is: '125% -25%'} | 130 {at: 1.5, is: '125% -25%'} |
131 ]); | 131 ]); |
132 | 132 |
133 assertInterpolation({ | 133 assertInterpolation({ |
134 property: 'object-position', | 134 property: 'object-position', |
135 from: 'center', | 135 from: 'center', |
136 to: 'right bottom 100%', | 136 to: 'right bottom 50%', |
137 }, [ | 137 }, [ |
138 {at: -0.5, is: '25% 75%'}, | 138 {at: -0.5, is: '25% 50%'}, |
139 {at: 0, is: 'center'}, | 139 {at: 0, is: 'center'}, |
140 {at: 0.3, is: '65% 35%'}, | 140 {at: 0.3, is: '65% 50%'}, |
141 {at: 0.5, is: '75% 25%'}, | 141 {at: 0.5, is: '75% 50%'}, |
142 {at: 0.9, is: '95% 5%'}, | 142 {at: 0.9, is: '95% 50%'}, |
143 {at: 1, is: 'right bottom 100%'}, | 143 {at: 1, is: '100% 50%'}, |
144 {at: 1.5, is: '125% -25%'}, | 144 {at: 1.5, is: '125% 50%'}, |
145 {at: 2, is: '150% -50%'}, | 145 {at: 2, is: '150% 50%'}, |
146 ]); | 146 ]); |
147 </script> | 147 </script> |
148 </body> | 148 </body> |
OLD | NEW |