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 fill-opacity: 0.8; | 8 fill-opacity: 0.8; |
9 } | 9 } |
10 .target { | 10 .target { |
11 fill: black; | 11 fill: black; |
12 fill-opacity: 0.6; | 12 fill-opacity: 0.6; |
13 } | 13 } |
14 .expected { | 14 .expected { |
15 border-right: solid; | 15 border-right: solid; |
16 } | 16 } |
17 </style> | 17 </style> |
18 <body> | 18 <body> |
19 <template id="target-template"> | 19 <template id="target-template"> |
20 <svg width="10" height="100"> | 20 <svg width="10" height="100"> |
21 <rect x="0" y="0" width="10" height="100"></rect> | 21 <rect x="0" y="0" width="10" height="100"></rect> |
22 </svg> | 22 </svg> |
23 </template> | 23 </template> |
24 <script src="resources/interpolation-test.js"></script> | 24 <script src="resources/interpolation-test.js"></script> |
25 <script> | 25 <script> |
26 assertInterpolation({ | 26 assertInterpolation({ |
27 property: 'fill-opacity', | 27 property: 'fill-opacity', |
28 from: '', | 28 from: neutralKeyframe, |
29 to: '0.4', | 29 to: '0.4', |
30 }, [ | 30 }, [ |
31 {at: -0.3, is: '0.66'}, | 31 {at: -0.3, is: '0.66'}, |
32 {at: 0, is: '0.6'}, | 32 {at: 0, is: '0.6'}, |
33 {at: 0.3, is: '0.54'}, | 33 {at: 0.3, is: '0.54'}, |
34 {at: 0.6, is: '0.48'}, | 34 {at: 0.6, is: '0.48'}, |
35 {at: 1, is: '0.4'}, | 35 {at: 1, is: '0.4'}, |
36 {at: 1.5, is: '0.3'}, | 36 {at: 1.5, is: '0.3'}, |
37 ]); | 37 ]); |
38 | 38 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 }, [ | 82 }, [ |
83 {at: -0.3, is: '0'}, | 83 {at: -0.3, is: '0'}, |
84 {at: 0, is: '0'}, | 84 {at: 0, is: '0'}, |
85 {at: 0.3, is: '0.3'}, | 85 {at: 0.3, is: '0.3'}, |
86 {at: 0.6, is: '0.6'}, | 86 {at: 0.6, is: '0.6'}, |
87 {at: 1, is: '1'}, | 87 {at: 1, is: '1'}, |
88 {at: 1.5, is: '1'} | 88 {at: 1.5, is: '1'} |
89 ]); | 89 ]); |
90 </script> | 90 </script> |
91 </body> | 91 </body> |
OLD | NEW |