| 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 text-shadow: 30px 10px 30px orange; | 5 text-shadow: 30px 10px 30px orange; |
| 6 } | 6 } |
| 7 .target { | 7 .target { |
| 8 display: inline-block; | 8 display: inline-block; |
| 9 font-size: 60pt; | 9 font-size: 60pt; |
| 10 margin-right: 20px; | 10 margin-right: 20px; |
| 11 margin-bottom: 30px; | 11 margin-bottom: 30px; |
| 12 color: green; | 12 color: green; |
| 13 text-shadow: 10px 30px 10px orange; | 13 text-shadow: 10px 30px 10px orange; |
| 14 } | 14 } |
| 15 .expected { | 15 .expected { |
| 16 margin-right: 40px; | 16 margin-right: 40px; |
| 17 } | 17 } |
| 18 </style> | 18 </style> |
| 19 <body> | 19 <body> |
| 20 <template id="target-template">T</template> | 20 <template id="target-template">T</template> |
| 21 <script src="resources/interpolation-test.js"></script> | 21 <script src="resources/interpolation-test.js"></script> |
| 22 <script> | 22 <script> |
| 23 assertInterpolation({ | 23 assertInterpolation({ |
| 24 property: 'text-shadow', | 24 property: 'text-shadow', |
| 25 from: '', | 25 from: neutralKeyframe, |
| 26 to: '20px 20px 20px green', | 26 to: '20px 20px 20px green', |
| 27 }, [ | 27 }, [ |
| 28 {at: -0.3, is: 'rgb(255, 176, 0) 7px 33px 7px'}, | 28 {at: -0.3, is: 'rgb(255, 176, 0) 7px 33px 7px'}, |
| 29 {at: 0, is: 'rgb(255, 165, 0) 10px 30px 10px'}, | 29 {at: 0, is: 'rgb(255, 165, 0) 10px 30px 10px'}, |
| 30 {at: 0.3, is: 'rgb(179, 154, 0) 13px 27px 13px'}, | 30 {at: 0.3, is: 'rgb(179, 154, 0) 13px 27px 13px'}, |
| 31 {at: 0.6, is: 'rgb(102, 143, 0) 16px 24px 16px'}, | 31 {at: 0.6, is: 'rgb(102, 143, 0) 16px 24px 16px'}, |
| 32 {at: 1, is: 'rgb(0, 128, 0) 20px 20px 20px'}, | 32 {at: 1, is: 'rgb(0, 128, 0) 20px 20px 20px'}, |
| 33 {at: 1.5, is: 'rgb(0, 110, 0) 25px 15px 25px'}, | 33 {at: 1.5, is: 'rgb(0, 110, 0) 25px 15px 25px'}, |
| 34 ]); | 34 ]); |
| 35 | 35 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 }, [ | 92 }, [ |
| 93 {at: -0.3, is: '10px 10px 10px black'}, | 93 {at: -0.3, is: '10px 10px 10px black'}, |
| 94 {at: 0, is: '10px 10px 10px black'}, | 94 {at: 0, is: '10px 10px 10px black'}, |
| 95 {at: 0.3, is: '10px 10px 10px rgb(0, 38, 0)'}, | 95 {at: 0.3, is: '10px 10px 10px rgb(0, 38, 0)'}, |
| 96 {at: 0.6, is: '10px 10px 10px rgb(0, 77, 0)'}, | 96 {at: 0.6, is: '10px 10px 10px rgb(0, 77, 0)'}, |
| 97 {at: 1, is: '10px 10px 10px green'}, | 97 {at: 1, is: '10px 10px 10px green'}, |
| 98 {at: 1.5, is: '10px 10px 10px rgb(0, 192, 0)'}, | 98 {at: 1.5, is: '10px 10px 10px rgb(0, 192, 0)'}, |
| 99 ]); | 99 ]); |
| 100 </script> | 100 </script> |
| 101 </body> | 101 </body> |
| OLD | NEW |