| 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 position: relative; | 5 position: relative; |
| 6 left: 30px; | 6 left: 30px; |
| 7 } | 7 } |
| 8 .target { | 8 .target { |
| 9 position: relative; | 9 position: relative; |
| 10 width: 10px; | 10 width: 10px; |
| 11 height: 10px; | 11 height: 10px; |
| 12 background-color: black; | 12 background-color: black; |
| 13 left: 10px; | 13 left: 10px; |
| 14 } | 14 } |
| 15 .expected { | 15 .expected { |
| 16 background-color: green; | 16 background-color: green; |
| 17 } | 17 } |
| 18 </style> | 18 </style> |
| 19 <body> | 19 <body> |
| 20 <script src="resources/interpolation-test.js"></script> | 20 <script src="resources/interpolation-test.js"></script> |
| 21 <script> | 21 <script> |
| 22 assertInterpolation({ | 22 assertInterpolation({ |
| 23 property: 'left', | 23 property: 'left', |
| 24 from: '', | 24 from: neutralKeyframe, |
| 25 to: '20px', | 25 to: '20px', |
| 26 }, [ | 26 }, [ |
| 27 {at: -0.3, is: '7px'}, | 27 {at: -0.3, is: '7px'}, |
| 28 {at: 0, is: '10px'}, | 28 {at: 0, is: '10px'}, |
| 29 {at: 0.5, is: '15px'}, | 29 {at: 0.5, is: '15px'}, |
| 30 {at: 1, is: '20px'}, | 30 {at: 1, is: '20px'}, |
| 31 {at: 1.5, is: '25px'}, | 31 {at: 1.5, is: '25px'}, |
| 32 ]); | 32 ]); |
| 33 | 33 |
| 34 assertNoInterpolation({ | 34 assertNoInterpolation({ |
| (...skipping 26 matching lines...) Expand all Loading... |
| 61 to: '10px' | 61 to: '10px' |
| 62 }, [ | 62 }, [ |
| 63 {at: -0.3, is: '-16px'}, | 63 {at: -0.3, is: '-16px'}, |
| 64 {at: 0, is: '-10px'}, | 64 {at: 0, is: '-10px'}, |
| 65 {at: 0.5, is: '0px'}, | 65 {at: 0.5, is: '0px'}, |
| 66 {at: 1, is: '10px'}, | 66 {at: 1, is: '10px'}, |
| 67 {at: 1.5, is: '20px'} | 67 {at: 1.5, is: '20px'} |
| 68 ]); | 68 ]); |
| 69 </script> | 69 </script> |
| 70 </body> | 70 </body> |
| OLD | NEW |