| <!DOCTYPE html> |
| <html> |
| <body> |
| <template id="target-template"> |
| <svg width="90" height="90"> |
| <pattern class="target" /> |
| </svg> |
| </template> |
| <script src="resources/interpolation-test.js"></script> |
| <script> |
| 'use strict'; |
| assertAttributeInterpolation({ |
| property: 'patternContentUnits', |
| from: 'userSpaceOnUse', |
| to: 'objectBoundingBox', |
| }, [ |
| {at: -2.4, is: 'userSpaceOnUse'}, |
| {at: 0, is: 'userSpaceOnUse'}, |
| {at: 0.2, is: 'userSpaceOnUse'}, |
| {at: 0.6, is: 'objectBoundingBox'}, |
| {at: 1, is: 'objectBoundingBox'}, |
| {at: 3.4, is: 'objectBoundingBox'} |
| ]); |
| </script> |
| </body> |
| </html> |