11 <template id=
"target-template">
12 <svg width=
"200px" height=
"300px" viewBox=
"0 0 1500 1000">
13 <text class=
"target" x=
"20, 40, 60" />
16 <script src=
"resources/interpolation-test.js"></script>
19 assertAttributeInterpolation({
24 {at
: -0.4, is
: '-2, 1, 0'},
25 {at
: 0, is
: '0, -1, 2'},
26 {at
: 0.2, is
: '1, -2, 3'},
27 {at
: 0.6, is
: '3, -4, 5'},
28 {at
: 1, is
: '5, -6, 7'},
29 {at
: 1.4, is
: '7, -8, 9'}
31 assertAttributeInterpolation({
33 from: '0em, 1ex, 2rems',
36 {at
: -0.4, is
: '-2em, -1ex, 0rems'},
37 {at
: 0, is
: '0em, 1ex, 2rems'},
38 {at
: 0.2, is
: '1em, 2ex, 3rems'},
39 {at
: 0.6, is
: '3em, 4ex, 5rems'},
40 {at
: 1, is
: '5em, 6ex, 7rems'},
41 {at
: 1.4, is
: '7em, 8ex, 9rems'}
43 assertAttributeInterpolation({
48 {at
: -0.4, is
: '750, -150, 0'},
49 {at
: 0, is
: '550, 50, 0'},
50 {at
: 0.2, is
: '450, 150, 0'},
51 {at
: 0.6, is
: '250, 350, 0'},
52 {at
: 1, is
: '50, 550, 0'},
53 {at
: 1.4, is
: '-150, 750, 0'}