| 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-dashoffset: 80px; | 8 stroke-dashoffset: 80px; |
| 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-dashoffset: 20px; | 14 stroke-dashoffset: 20px; |
| 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="200" width="5"> | 22 <svg height="200" width="5"> |
| 23 <path d="M0,0 l0,200" stroke-dasharray="10,20" class="target"> | 23 <path d="M0,0 l0,200" stroke-dasharray="10,20" 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-dashoffset', | 29 property: 'stroke-dashoffset', |
| 30 from: '', | 30 from: neutralKeyframe, |
| 31 to: '40px', | 31 to: '40px', |
| 32 }, [ | 32 }, [ |
| 33 {at: -0.25, is: '15px'}, | 33 {at: -0.25, is: '15px'}, |
| 34 {at: 0, is: '20px'}, | 34 {at: 0, is: '20px'}, |
| 35 {at: 0.25, is: '25px'}, | 35 {at: 0.25, is: '25px'}, |
| 36 {at: 0.5, is: '30px'}, | 36 {at: 0.5, is: '30px'}, |
| 37 {at: 0.75, is: '35px'}, | 37 {at: 0.75, is: '35px'}, |
| 38 {at: 1, is: '40px'}, | 38 {at: 1, is: '40px'}, |
| 39 {at: 1.25, is: '45px'}, | 39 {at: 1.25, is: '45px'}, |
| 40 ]); | 40 ]); |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 {at: -0.25, is: '-15'}, | 117 {at: -0.25, is: '-15'}, |
| 118 {at: 0, is: '-10'}, | 118 {at: 0, is: '-10'}, |
| 119 {at: 0.25, is: '-5'}, | 119 {at: 0.25, is: '-5'}, |
| 120 {at: 0.5, is: '0'}, | 120 {at: 0.5, is: '0'}, |
| 121 {at: 0.75, is: '5'}, | 121 {at: 0.75, is: '5'}, |
| 122 {at: 1, is: '10'}, | 122 {at: 1, is: '10'}, |
| 123 {at: 1.25, is: '15'}, | 123 {at: 1.25, is: '15'}, |
| 124 ]); | 124 ]); |
| 125 </script> | 125 </script> |
| 126 </body> | 126 </body> |
| OLD | NEW |