| <!DOCTYPE html> |
| <html> |
| <body> |
| <template id="target-template"> |
| <svg width="90" height="90"> |
| <defs> |
| <filter> |
| <feConvolveMatrix in="SourceGraphic" order="2 2" kernelMatrix="100 200 300 400" preserveAlpha="false" class="target" /> |
| </filter> |
| </defs> |
| </svg> |
| </template> |
| <script src="resources/interpolation-test.js"></script> |
| <script> |
| 'use strict'; |
| assertAttributeInterpolation({ |
| property: 'preserveAlpha', |
| from: 'false', |
| to: 'true' |
| }, [ |
| {at: -2.4, is: 'false'}, |
| {at: 0, is: 'false'}, |
| {at: 0.2, is: 'false'}, |
| {at: 0.6, is: 'true'}, |
| {at: 1, is: 'true'}, |
| {at: 3.4, is: 'true'} |
| ]); |
| </script> |
| </body> |
| </html> |