| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <meta charset="UTF-8"> | 2 <meta charset="UTF-8"> |
| 3 <style> | 3 <style> |
| 4 .parent { | 4 .parent { |
| 5 stroke-opacity: 0.8; | 5 stroke-opacity: 0.8; |
| 6 } | 6 } |
| 7 .target { | 7 .target { |
| 8 display: inline-block; | 8 display: inline-block; |
| 9 fill: none; | 9 fill: none; |
| 10 stroke: black; | 10 stroke: black; |
| 11 stroke-width: 50px; | 11 stroke-width: 50px; |
| 12 stroke-opacity: 0.6; | 12 stroke-opacity: 0.6; |
| 13 } | 13 } |
| 14 .expected { | 14 .expected { |
| 15 margin-right: 15px; | 15 margin-right: 15px; |
| 16 stroke: green; | 16 stroke: green; |
| 17 } | 17 } |
| 18 </style> | 18 </style> |
| 19 <body> | 19 <body> |
| 20 <template id="target-template"> | 20 <template id="target-template"> |
| 21 <svg width="50" height="50"> | 21 <svg width="50" height="50"> |
| 22 <rect x="0" y="0" width="50" height="50" /> | 22 <rect x="0" y="0" width="50" height="50" /> |
| 23 </svg> | 23 </svg> |
| 24 </template> | 24 </template> |
| 25 <script src="resources/interpolation-test.js"></script> | 25 <script src="resources/interpolation-test.js"></script> |
| 26 <script> | 26 <script> |
| 27 assertInterpolation({ | 27 assertInterpolation({ |
| 28 property: 'stroke-opacity', | 28 property: 'stroke-opacity', |
| 29 from: '', | 29 from: neutralKeyframe, |
| 30 to: '0.4', | 30 to: '0.4', |
| 31 }, [ | 31 }, [ |
| 32 {at: -0.3, is: '0.66'}, | 32 {at: -0.3, is: '0.66'}, |
| 33 {at: 0, is: '0.6'}, | 33 {at: 0, is: '0.6'}, |
| 34 {at: 0.3, is: '0.54'}, | 34 {at: 0.3, is: '0.54'}, |
| 35 {at: 0.6, is: '0.48'}, | 35 {at: 0.6, is: '0.48'}, |
| 36 {at: 1, is: '0.4'}, | 36 {at: 1, is: '0.4'}, |
| 37 {at: 1.5, is: '0.3'}, | 37 {at: 1.5, is: '0.3'}, |
| 38 ]); | 38 ]); |
| 39 | 39 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 }, [ | 83 }, [ |
| 84 {at: -0.3, is: '0'}, | 84 {at: -0.3, is: '0'}, |
| 85 {at: 0, is: '0'}, | 85 {at: 0, is: '0'}, |
| 86 {at: 0.3, is: '0.3'}, | 86 {at: 0.3, is: '0.3'}, |
| 87 {at: 0.6, is: '0.6'}, | 87 {at: 0.6, is: '0.6'}, |
| 88 {at: 1, is: '1'}, | 88 {at: 1, is: '1'}, |
| 89 {at: 1.5, is: '1'}, | 89 {at: 1.5, is: '1'}, |
| 90 ]); | 90 ]); |
| 91 </script> | 91 </script> |
| 92 </body | 92 </body |
| OLD | NEW |