| 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 <feBlend class="target" /> | 6 <feBlend 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: 'mode', | 13 property: 'mode', |
| 14 underlying: 'multiply' | 14 underlying: 'multiply', |
| 15 from: 'screen', | 15 from: 'screen', |
| 16 fromComposite: 'add', | 16 fromComposite: 'add', |
| 17 to: 'lighten', | 17 to: 'lighten', |
| 18 toComposite: 'add', | 18 toComposite: 'add', |
| 19 }, [ | 19 }, [ |
| 20 {at: -2.4, is: 'screen'}, | 20 {at: -2.4, is: 'screen'}, |
| 21 {at: 0, is: 'screen'}, | 21 {at: 0, is: 'screen'}, |
| 22 {at: 0.2, is: 'screen'}, | 22 {at: 0.2, is: 'screen'}, |
| 23 {at: 0.6, is: 'lighten'}, | 23 {at: 0.6, is: 'lighten'}, |
| 24 {at: 1, is: 'lighten'}, | 24 {at: 1, is: 'lighten'}, |
| 25 {at: 3.4, is: 'lighten'} | 25 {at: 3.4, is: 'lighten'} |
| 26 ]); | 26 ]); |
| 27 | 27 |
| 28 assertAttributeInterpolation({ | 28 assertAttributeInterpolation({ |
| 29 property: 'mode', | 29 property: 'mode', |
| 30 underlying: 'multiply' | 30 underlying: 'multiply', |
| 31 from: neutralKeyframe, | 31 from: neutralKeyframe, |
| 32 to: 'lighten', | 32 to: 'lighten', |
| 33 toComposite: 'replace', | 33 toComposite: 'replace', |
| 34 }, [ | 34 }, [ |
| 35 {at: -2.4, is: 'multiply'}, | 35 {at: -2.4, is: 'multiply'}, |
| 36 {at: 0, is: 'multiply'}, | 36 {at: 0, is: 'multiply'}, |
| 37 {at: 0.2, is: 'multiply'}, | 37 {at: 0.2, is: 'multiply'}, |
| 38 {at: 0.6, is: 'lighten'}, | 38 {at: 0.6, is: 'lighten'}, |
| 39 {at: 1, is: 'lighten'}, | 39 {at: 1, is: 'lighten'}, |
| 40 {at: 3.4, is: 'lighten'} | 40 {at: 3.4, is: 'lighten'} |
| 41 ]); | 41 ]); |
| 42 </script> | 42 </script> |
| 43 </body> | 43 </body> |
| 44 </html> | 44 </html> |
| OLD | NEW |