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