OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <body> |
| 4 <template id="target-template"> |
| 5 <svg width="0" height="0"> |
| 6 <defs> |
| 7 <filter> |
| 8 <feConvolveMatrix kernelMatrix="100 200 300 400" class="target" /> |
| 9 </filter> |
| 10 </defs> |
| 11 </svg> |
| 12 </template> |
| 13 <script src="../svg-attribute-interpolation/resources/interpolation-test.js"></s
cript> |
| 14 <script> |
| 15 'use strict'; |
| 16 assertAttributeInterpolation({ |
| 17 property: 'order', |
| 18 underlying: '1', |
| 19 from: '1, 6', |
| 20 fromComposite: 'add', |
| 21 to: '3, 4', |
| 22 toComposite: 'add', |
| 23 }, [ |
| 24 {at: -0.4, is: '1, 8'}, |
| 25 {at: 0, is: '2, 7'}, |
| 26 {at: 0.2, is: '2, 7'}, |
| 27 {at: 0.6, is: '3, 6'}, |
| 28 {at: 1, is: '4, 5'}, |
| 29 {at: 1.4, is: '5, 4'}, |
| 30 ]); |
| 31 |
| 32 assertAttributeInterpolation({ |
| 33 property: 'order', |
| 34 underlying: '3', |
| 35 from: '1, 3', |
| 36 fromComposite: 'replace', |
| 37 to: '3', |
| 38 toComposite: 'add', |
| 39 }, [ |
| 40 {at: -0.4, is: '1, 2'}, |
| 41 {at: 0, is: '1, 3'}, |
| 42 {at: 0.2, is: '2, 4'}, |
| 43 {at: 0.6, is: '4, 5'}, |
| 44 {at: 1, is: '6, 6'}, |
| 45 {at: 1.4, is: '8, 7'}, |
| 46 ]); |
| 47 |
| 48 assertAttributeInterpolation({ |
| 49 property: 'order', |
| 50 underlying: '3, 5', |
| 51 to: '1', |
| 52 toComposite: 'replace', |
| 53 }, [ |
| 54 {at: -0.4, is: '4, 7'}, |
| 55 {at: 0, is: '3, 5'}, |
| 56 {at: 0.2, is: '3, 4'}, |
| 57 {at: 0.6, is: '2, 3'}, |
| 58 {at: 1, is: '1, 1'}, |
| 59 {at: 1.4, is: '1, 1'}, |
| 60 ]); |
| 61 </script> |
| 62 </body> |
| 63 </html> |
OLD | NEW |