| 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 font-size: 30px; | 5 font-size: 30px; |
| 6 } | 6 } |
| 7 .target { | 7 .target { |
| 8 display: inline-block; | 8 display: inline-block; |
| 9 font: 10px sans-serif; | 9 font: 10px sans-serif; |
| 10 } | 10 } |
| 11 .expected { | 11 .expected { |
| 12 color: green; | 12 color: green; |
| 13 margin-right: 30px; | 13 margin-right: 30px; |
| 14 } | 14 } |
| 15 </style> | 15 </style> |
| 16 <body> | 16 <body> |
| 17 <template id="target-template"> | 17 <template id="target-template"> |
| 18 <span> | 18 <span> |
| 19 <div class="target">Test Text</div> | 19 <div class="target">Test Text</div> |
| 20 </span> | 20 </span> |
| 21 </template> | 21 </template> |
| 22 <script src="resources/interpolation-test.js"></script> | 22 <script src="resources/interpolation-test.js"></script> |
| 23 <script> | 23 <script> |
| 24 assertInterpolation({ | 24 assertInterpolation({ |
| 25 property: 'font-size', | 25 property: 'font-size', |
| 26 from: '', | 26 from: neutralKeyframe, |
| 27 to: '20px', | 27 to: '20px', |
| 28 }, [ | 28 }, [ |
| 29 {at: -2, is: '0px'}, | 29 {at: -2, is: '0px'}, |
| 30 {at: -0.3, is: '7px'}, | 30 {at: -0.3, is: '7px'}, |
| 31 {at: 0, is: '10px'}, | 31 {at: 0, is: '10px'}, |
| 32 {at: 0.3, is: '13px'}, | 32 {at: 0.3, is: '13px'}, |
| 33 {at: 0.6, is: '16px'}, | 33 {at: 0.6, is: '16px'}, |
| 34 {at: 1, is: '20px'}, | 34 {at: 1, is: '20px'}, |
| 35 {at: 1.5, is: '25px'}, | 35 {at: 1.5, is: '25px'}, |
| 36 ]); | 36 ]); |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 {at: -2, is: '0px'}, // CSS font-size can't be negative. | 85 {at: -2, is: '0px'}, // CSS font-size can't be negative. |
| 86 {at: -0.3, is: '1px'}, | 86 {at: -0.3, is: '1px'}, |
| 87 {at: 0, is: '4px'}, | 87 {at: 0, is: '4px'}, |
| 88 {at: 0.3, is: '7px'}, | 88 {at: 0.3, is: '7px'}, |
| 89 {at: 0.6, is: '10px'}, | 89 {at: 0.6, is: '10px'}, |
| 90 {at: 1, is: '14px'}, | 90 {at: 1, is: '14px'}, |
| 91 {at: 1.5, is: '19px'}, | 91 {at: 1.5, is: '19px'}, |
| 92 ]); | 92 ]); |
| 93 </script> | 93 </script> |
| 94 </body> | 94 </body> |
| OLD | NEW |