| 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 letter-spacing: 2px; | 5 letter-spacing: 2px; |
| 6 } | 6 } |
| 7 .target { | 7 .target { |
| 8 font: 10px sans-serif; | 8 font: 10px sans-serif; |
| 9 font-weight: bold; | 9 font-weight: bold; |
| 10 letter-spacing: 30px; | 10 letter-spacing: 30px; |
| 11 } | 11 } |
| 12 .expected { | 12 .expected { |
| 13 color: green; | 13 color: green; |
| 14 margin-right: 30px; | 14 margin-right: 30px; |
| 15 } | 15 } |
| 16 </style> | 16 </style> |
| 17 <body> | 17 <body> |
| 18 <template id="target-template">TT</template> | 18 <template id="target-template">TT</template> |
| 19 <script src="resources/interpolation-test.js"></script> | 19 <script src="resources/interpolation-test.js"></script> |
| 20 <script> | 20 <script> |
| 21 assertInterpolation({ | 21 assertInterpolation({ |
| 22 property: 'letter-spacing', | 22 property: 'letter-spacing', |
| 23 from: '', | 23 from: neutralKeyframe, |
| 24 to: '20px', | 24 to: '20px', |
| 25 }, [ | 25 }, [ |
| 26 {at: -0.3, is: '33px'}, | 26 {at: -0.3, is: '33px'}, |
| 27 {at: 0, is: '30px'}, | 27 {at: 0, is: '30px'}, |
| 28 {at: 0.3, is: '27px'}, | 28 {at: 0.3, is: '27px'}, |
| 29 {at: 0.6, is: '24px'}, | 29 {at: 0.6, is: '24px'}, |
| 30 {at: 1, is: '20px'}, | 30 {at: 1, is: '20px'}, |
| 31 {at: 1.5, is: '15px'}, | 31 {at: 1.5, is: '15px'}, |
| 32 ]); | 32 ]); |
| 33 | 33 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 }, [ | 90 }, [ |
| 91 {at: -0.3, is: '-3px'}, | 91 {at: -0.3, is: '-3px'}, |
| 92 {at: 0, is: 'normal'}, | 92 {at: 0, is: 'normal'}, |
| 93 {at: 0.3, is: '3px'}, | 93 {at: 0.3, is: '3px'}, |
| 94 {at: 0.6, is: '6px'}, | 94 {at: 0.6, is: '6px'}, |
| 95 {at: 1, is: '10px'}, | 95 {at: 1, is: '10px'}, |
| 96 {at: 1.5, is: '15px'}, | 96 {at: 1.5, is: '15px'}, |
| 97 ]); | 97 ]); |
| 98 </script> | 98 </script> |
| 99 </body> | 99 </body> |
| OLD | NEW |