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 word-spacing: 30px; | 5 word-spacing: 30px; |
6 } | 6 } |
7 .target { | 7 .target { |
8 font: 10px sans-serif; | 8 font: 10px sans-serif; |
9 word-spacing: 10px; | 9 word-spacing: 10px; |
10 } | 10 } |
11 .expected { | 11 .expected { |
12 color: green; | 12 color: green; |
13 } | 13 } |
14 </style> | 14 </style> |
15 <body> | 15 <body> |
16 <template id="target-template">A B C D</template> | 16 <template id="target-template">A B C D</template> |
17 <script src="resources/interpolation-test.js"></script> | 17 <script src="resources/interpolation-test.js"></script> |
18 <script> | 18 <script> |
19 assertInterpolation({ | 19 assertInterpolation({ |
20 property: 'word-spacing', | 20 property: 'word-spacing', |
21 from: '', | 21 from: neutralKeyframe, |
22 to: '20px', | 22 to: '20px', |
23 }, [ | 23 }, [ |
24 {at: -0.3, is: '7px'}, | 24 {at: -0.3, is: '7px'}, |
25 {at: 0, is: '10px'}, | 25 {at: 0, is: '10px'}, |
26 {at: 0.3, is: '13px'}, | 26 {at: 0.3, is: '13px'}, |
27 {at: 0.6, is: '16px'}, | 27 {at: 0.6, is: '16px'}, |
28 {at: 1, is: '20px'}, | 28 {at: 1, is: '20px'}, |
29 {at: 1.5, is: '25px'}, | 29 {at: 1.5, is: '25px'}, |
30 ]); | 30 ]); |
31 | 31 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 }, [ | 87 }, [ |
88 {at: -0.3, is: '-3px'}, | 88 {at: -0.3, is: '-3px'}, |
89 {at: 0, is: '0px'}, | 89 {at: 0, is: '0px'}, |
90 {at: 0.3, is: '3px'}, | 90 {at: 0.3, is: '3px'}, |
91 {at: 0.6, is: '6px'}, | 91 {at: 0.6, is: '6px'}, |
92 {at: 1, is: '10px'}, | 92 {at: 1, is: '10px'}, |
93 {at: 1.5, is: '15px'}, | 93 {at: 1.5, is: '15px'}, |
94 ]); | 94 ]); |
95 </script> | 95 </script> |
96 </body> | 96 </body> |
OLD | NEW |