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