| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <meta charset="UTF-8"> | |
| 3 <style> | |
| 4 .target { | |
| 5 stroke: black; | |
| 6 } | |
| 7 .replica { | |
| 8 stroke: green; | |
| 9 } | |
| 10 </style> | |
| 11 <body> | |
| 12 <template id="target-template"> | |
| 13 <svg width="100" height="50"> | |
| 14 <text x="0" y="25" font-size="20">TTT</text> | |
| 15 </svg> | |
| 16 </template> | |
| 17 <script src="resources/interpolation-test.js"></script> | |
| 18 <script> | |
| 19 assertInterpolation({ | |
| 20 property: 'kerning', | |
| 21 from: '-10px', | |
| 22 to: '10px' | |
| 23 }, [ | |
| 24 {at: -0.25, is: '-15px'}, | |
| 25 {at: 0, is: '-10px'}, | |
| 26 {at: 0.25, is: '-5px'}, | |
| 27 {at: 0.5, is: '0px'}, | |
| 28 {at: 0.75, is: '5px'}, | |
| 29 {at: 1, is: '10px'}, | |
| 30 {at: 1.25, is: '15px'}, | |
| 31 ]); | |
| 32 </script> | |
| 33 </body> | |
| OLD | NEW |