OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <meta charset="UTF-8"> | 2 <meta charset="UTF-8"> |
3 <style> | 3 <style> |
4 .container { | 4 .container { |
5 display: inline-block; | 5 display: inline-block; |
6 } | 6 } |
7 .parent { | 7 .parent { |
8 stroke-dasharray: 30 10; | 8 stroke-dasharray: 30 10; |
9 } | 9 } |
10 .target { | 10 .target { |
11 font-size: 16px; | 11 font-size: 16px; |
12 stroke: black; | 12 stroke: black; |
13 stroke-width: 10px; | 13 stroke-width: 10px; |
14 stroke-dasharray: 10 30; | 14 stroke-dasharray: 10 30; |
15 } | 15 } |
16 .expected { | 16 .expected { |
17 stroke: green; | 17 stroke: green; |
18 } | 18 } |
19 </style> | 19 </style> |
20 <body> | 20 <body> |
21 <template id="target-template"> | 21 <template id="target-template"> |
22 <svg height="400" width="5"> | 22 <svg height="400" width="5"> |
23 <path d="M0,0 l0,400" class="target"> | 23 <path d="M0,0 l0,400" class="target"> |
24 </svg> | 24 </svg> |
25 </template> | 25 </template> |
26 <script src="resources/interpolation-test.js"></script> | 26 <script src="resources/interpolation-test.js"></script> |
27 <script> | 27 <script> |
28 assertInterpolation({ | 28 assertInterpolation({ |
29 property: 'stroke-dasharray', | 29 property: 'stroke-dasharray', |
30 from: '', | 30 from: neutralKeyframe, |
31 to: '20 20', | 31 to: '20 20', |
32 }, [ | 32 }, [ |
33 {at: -0.6, is: '4px, 36px'}, | 33 {at: -0.6, is: '4px, 36px'}, |
34 {at: -0.4, is: '6px, 34px'}, | 34 {at: -0.4, is: '6px, 34px'}, |
35 {at: -0.2, is: '8px, 32px'}, | 35 {at: -0.2, is: '8px, 32px'}, |
36 {at: 0, is: '10px, 30px'}, | 36 {at: 0, is: '10px, 30px'}, |
37 {at: 0.2, is: '12px, 28px'}, | 37 {at: 0.2, is: '12px, 28px'}, |
38 {at: 0.4, is: '14px, 26px'}, | 38 {at: 0.4, is: '14px, 26px'}, |
39 {at: 0.6, is: '16px, 24px'}, | 39 {at: 0.6, is: '16px, 24px'}, |
40 {at: 0.8, is: '18px, 22px'}, | 40 {at: 0.8, is: '18px, 22px'}, |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 {at: 0, is: '10em 20px 30em 40px 50em 60px'}, | 280 {at: 0, is: '10em 20px 30em 40px 50em 60px'}, |
281 {at: 0.2, is: '28em 56px 84em 112px 60em 88px 68em 96px 44em 72px 100em 128px
'}, | 281 {at: 0.2, is: '28em 56px 84em 112px 60em 88px 68em 96px 44em 72px 100em 128px
'}, |
282 {at: 0.4, is: '46em 92px 138em 184px 70em 116px 126em 172px 58em 104px 150em
196px'}, | 282 {at: 0.4, is: '46em 92px 138em 184px 70em 116px 126em 172px 58em 104px 150em
196px'}, |
283 {at: 0.6, is: '64em 128px 192em 256px 80em 144px 184em 248px 72em 136px 200em
264px'}, | 283 {at: 0.6, is: '64em 128px 192em 256px 80em 144px 184em 248px 72em 136px 200em
264px'}, |
284 {at: 0.8, is: '82em 164px 246em 328px 90em 172px 242em 324px 86em 168px 250em
332px'}, | 284 {at: 0.8, is: '82em 164px 246em 328px 90em 172px 242em 324px 86em 168px 250em
332px'}, |
285 {at: 1, is: '100em 200px 300em 400px'}, | 285 {at: 1, is: '100em 200px 300em 400px'}, |
286 {at: 1.2, is: '118em 236px 354em 472px 110em 228px 358em 476px 114em 232px 35
0em 468px'}, | 286 {at: 1.2, is: '118em 236px 354em 472px 110em 228px 358em 476px 114em 232px 35
0em 468px'}, |
287 ]); | 287 ]); |
288 </script> | 288 </script> |
289 </body> | 289 </body> |
OLD | NEW |