OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <meta charset="UTF-8"> |
2 <style> | 3 <style> |
3 .container { | 4 .container { |
4 zoom: 2; | 5 font-size: 10px; |
5 } | 6 } |
6 .target { | 7 .target { |
7 display: inline-block; | 8 display: inline-block; |
| 9 font: 100px sans-serif; |
| 10 font-size: 20px; |
8 } | 11 } |
9 .replica { | 12 .replica { |
10 color: green; | 13 color: green; |
11 margin-right: 30px; | 14 margin-right: 30px; |
12 } | 15 } |
13 </style> | 16 </style> |
| 17 <body> |
14 <template id="target-template"> | 18 <template id="target-template"> |
15 <span class="container"> | 19 <span class="container"> |
16 <div class="target">TT</div> | 20 <div class="target">TT</div> |
17 </span> | 21 </span> |
18 </template> | 22 </template> |
19 <script src="resources/interpolation-test.js"></script> | 23 <script src="resources/interpolation-test.js"></script> |
20 <script> | 24 <script> |
21 assertInterpolation({ | 25 assertInterpolation({ |
22 property: 'font-size', | 26 property: 'font-size', |
23 from: '10px', | 27 from: 'unset', |
24 to: '20px' | 28 to: '20px' |
25 }, [ | 29 }, [ |
26 {at: -2, is: '0px'}, // CSS font-size can't be negative. | 30 {at: -2, is: '0px'}, // CSS font-size can't be negative. |
27 {at: -0.3, is: '7px'}, | 31 {at: -0.3, is: '7px'}, |
28 {at: 0, is: '10px'}, | 32 {at: 0, is: '10px'}, |
29 {at: 0.3, is: '13px'}, | 33 {at: 0.3, is: '13px'}, |
30 {at: 0.6, is: '16px'}, | 34 {at: 0.6, is: '16px'}, |
31 {at: 1, is: '20px'}, | 35 {at: 1, is: '20px'}, |
32 {at: 1.5, is: '25px'}, | 36 {at: 1.5, is: '25px'}, |
33 ]); | 37 ]); |
34 </script> | 38 </script> |
| 39 </body> |
OLD | NEW |