| 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; |
| 11 background-color: black; | 11 background-color: black; |
| 12 display: inline-block; | 12 display: inline-block; |
| 13 margin: 20px 0px 20px 0px; | 13 margin: 20px 0px 20px 0px; |
| 14 object-fit: fill; | 14 object-fit: fill; |
| 15 object-position: 10px 30px; | 15 object-position: 10px 30px; |
| 16 } | 16 } |
| 17 .expected { | 17 .expected { |
| 18 background-color: green; | 18 background-color: green; |
| 19 } | 19 } |
| 20 </style> | 20 </style> |
| 21 <body> | 21 <body> |
| 22 <script src="resources/interpolation-test.js"></script> | 22 <script src="resources/interpolation-test.js"></script> |
| 23 <script> | 23 <script> |
| 24 assertInterpolation({ | 24 assertInterpolation({ |
| 25 property: 'object-position', | 25 property: 'object-position', |
| 26 from: '', | 26 from: neutralKeyframe, |
| 27 to: '20px 20px', | 27 to: '20px 20px', |
| 28 }, [ | 28 }, [ |
| 29 {at: -0.3, is: '7px 33px'}, | 29 {at: -0.3, is: '7px 33px'}, |
| 30 {at: 0, is: '10px 30px'}, | 30 {at: 0, is: '10px 30px'}, |
| 31 {at: 0.5, is: '15px 25px'}, | 31 {at: 0.5, is: '15px 25px'}, |
| 32 {at: 1, is: '20px 20px'}, | 32 {at: 1, is: '20px 20px'}, |
| 33 {at: 1.5, is: '25px 15px'}, | 33 {at: 1.5, is: '25px 15px'}, |
| 34 ]); | 34 ]); |
| 35 | 35 |
| 36 assertInterpolation({ | 36 assertInterpolation({ |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 {at: 0, is: 'center'}, | 139 {at: 0, is: 'center'}, |
| 140 {at: 0.3, is: '65% 50%'}, | 140 {at: 0.3, is: '65% 50%'}, |
| 141 {at: 0.5, is: '75% 50%'}, | 141 {at: 0.5, is: '75% 50%'}, |
| 142 {at: 0.9, is: '95% 50%'}, | 142 {at: 0.9, is: '95% 50%'}, |
| 143 {at: 1, is: '100% 50%'}, | 143 {at: 1, is: '100% 50%'}, |
| 144 {at: 1.5, is: '125% 50%'}, | 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 |