| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <body> | 3 <body> |
| 4 <template id="target-template"> | 4 <template id="target-template"> |
| 5 <svg width="0" height="0"> | 5 <svg width="0" height="0"> |
| 6 <feConvolveMatrix class="target" /> | 6 <feConvolveMatrix class="target" /> |
| 7 </svg> | 7 </svg> |
| 8 </template> | 8 </template> |
| 9 <script src="../svg-attribute-interpolation/resources/interpolation-test.js"></s
cript> | 9 <script src="../svg-attribute-interpolation/resources/interpolation-test.js"></s
cript> |
| 10 <script> | 10 <script> |
| 11 'use strict'; | 11 'use strict'; |
| 12 assertAttributeInterpolation({ | 12 assertAttributeInterpolation({ |
| 13 property: 'targetX', | 13 property: 'targetX', |
| 14 underlying: '128', | 14 underlying: '128', |
| 15 from: '-32', | 15 from: '-32', |
| 16 fromComposite: 'add', | 16 fromComposite: 'add', |
| 17 to: '1029' | 17 to: '1029', |
| 18 toComposite: 'add', | 18 toComposite: 'add', |
| 19 }, [ | 19 }, [ |
| 20 {at: -0.4, is: -328}, | 20 {at: -0.4, is: -328}, |
| 21 {at: 0, is: 96}, | 21 {at: 0, is: 96}, |
| 22 {at: 0.2, is: 308}, | 22 {at: 0.2, is: 308}, |
| 23 {at: 0.6, is: 733}, | 23 {at: 0.6, is: 733}, |
| 24 {at: 1, is: 1157}, | 24 {at: 1, is: 1157}, |
| 25 {at: 1.4, is: 1581} | 25 {at: 1.4, is: 1581} |
| 26 ]); | 26 ]); |
| 27 | 27 |
| 28 assertAttributeInterpolation({ | 28 assertAttributeInterpolation({ |
| 29 property: 'targetX', | 29 property: 'targetX', |
| 30 underlying: '-37', | 30 underlying: '-37', |
| 31 from: '18', | 31 from: '18', |
| 32 fromComposite: 'replace', | 32 fromComposite: 'replace', |
| 33 to: '1' | 33 to: '1', |
| 34 toComposite: 'add', | 34 toComposite: 'add', |
| 35 }, [ | 35 }, [ |
| 36 {at: -0.4, is: 40}, | 36 {at: -0.4, is: 40}, |
| 37 {at: 0, is: 18}, | 37 {at: 0, is: 18}, |
| 38 | 38 |
| 39 {at: 0.6, is: -14}, | 39 {at: 0.6, is: -14}, |
| 40 {at: 1, is: -36}, | 40 {at: 1, is: -36}, |
| 41 {at: 1.4, is: -58} | 41 {at: 1.4, is: -58} |
| 42 ]); | 42 ]); |
| 43 | 43 |
| 44 assertAttributeInterpolation({ | 44 assertAttributeInterpolation({ |
| 45 property: 'targetX', | 45 property: 'targetX', |
| 46 underlying: '2', | 46 underlying: '2', |
| 47 to: '-99' | 47 from: neutralKeyframe, |
| 48 to: '-99', |
| 48 toComposite: 'replace', | 49 toComposite: 'replace', |
| 49 }, [ | 50 }, [ |
| 50 {at: -0.4, is: 42}, | 51 {at: -0.4, is: 42}, |
| 51 {at: 0, is: 2}, | 52 {at: 0, is: 2}, |
| 52 {at: 0.2, is: -18}, | 53 {at: 0.2, is: -18}, |
| 53 {at: 0.6, is: -59}, | 54 {at: 0.6, is: -59}, |
| 54 {at: 1, is: -99}, | 55 {at: 1, is: -99}, |
| 55 {at: 1.4, is: -139} | 56 {at: 1.4, is: -139} |
| 56 ]); | 57 ]); |
| 57 | 58 |
| 58 | 59 |
| 59 assertAttributeInterpolation({ | 60 assertAttributeInterpolation({ |
| 60 property: 'targetY', | 61 property: 'targetY', |
| 61 underlying: '128', | 62 underlying: '128', |
| 62 from: '-32', | 63 from: '-32', |
| 63 fromComposite: 'add', | 64 fromComposite: 'add', |
| 64 to: '1029' | 65 to: '1029', |
| 65 toComposite: 'add', | 66 toComposite: 'add', |
| 66 }, [ | 67 }, [ |
| 67 {at: -0.4, is: -328}, | 68 {at: -0.4, is: -328}, |
| 68 {at: 0, is: 96}, | 69 {at: 0, is: 96}, |
| 69 {at: 0.2, is: 308}, | 70 {at: 0.2, is: 308}, |
| 70 {at: 0.6, is: 733}, | 71 {at: 0.6, is: 733}, |
| 71 {at: 1, is: 1157}, | 72 {at: 1, is: 1157}, |
| 72 {at: 1.4, is: 1581} | 73 {at: 1.4, is: 1581} |
| 73 ]); | 74 ]); |
| 74 | 75 |
| 75 assertAttributeInterpolation({ | 76 assertAttributeInterpolation({ |
| 76 property: 'targetY', | 77 property: 'targetY', |
| 77 underlying: '-37', | 78 underlying: '-37', |
| 78 from: '18', | 79 from: '18', |
| 79 fromComposite: 'replace', | 80 fromComposite: 'replace', |
| 80 to: '1' | 81 to: '1', |
| 81 toComposite: 'add', | 82 toComposite: 'add', |
| 82 }, [ | 83 }, [ |
| 83 {at: -0.4, is: 40}, | 84 {at: -0.4, is: 40}, |
| 84 {at: 0, is: 18}, | 85 {at: 0, is: 18}, |
| 85 | 86 |
| 86 {at: 0.6, is: -14}, | 87 {at: 0.6, is: -14}, |
| 87 {at: 1, is: -36}, | 88 {at: 1, is: -36}, |
| 88 {at: 1.4, is: -58} | 89 {at: 1.4, is: -58} |
| 89 ]); | 90 ]); |
| 90 | 91 |
| 91 assertAttributeInterpolation({ | 92 assertAttributeInterpolation({ |
| 92 property: 'targetY', | 93 property: 'targetY', |
| 93 underlying: '2', | 94 underlying: '2', |
| 94 to: '-99' | 95 from: neutralKeyframe, |
| 96 to: '-99', |
| 95 toComposite: 'replace', | 97 toComposite: 'replace', |
| 96 }, [ | 98 }, [ |
| 97 {at: -0.4, is: 42}, | 99 {at: -0.4, is: 42}, |
| 98 {at: 0, is: 2}, | 100 {at: 0, is: 2}, |
| 99 {at: 0.2, is: -18}, | 101 {at: 0.2, is: -18}, |
| 100 {at: 0.6, is: -59}, | 102 {at: 0.6, is: -59}, |
| 101 {at: 1, is: -99}, | 103 {at: 1, is: -99}, |
| 102 {at: 1.4, is: -139} | 104 {at: 1.4, is: -139} |
| 103 ]); | 105 ]); |
| 104 </script> | 106 </script> |
| 105 </body> | 107 </body> |
| 106 </html> | 108 </html> |
| OLD | NEW |