OLD | NEW |
---|---|
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <body> | 2 <body> |
3 <style> | 3 <style> |
4 .target { | 4 .target { |
5 width: 100px; | 5 width: 100px; |
6 height: 100px; | 6 height: 100px; |
7 display: inline-block; | 7 display: inline-block; |
8 } | 8 } |
9 </style> | 9 </style> |
10 <template id="target-template">Text</template> | 10 <template id="target-template">Text</template> |
11 <script src="resources/interpolation-test.js"></script> | 11 <script src="resources/interpolation-test.js"></script> |
12 <script> | 12 <script> |
13 runAsRefTest(); | 13 runAsRefTest(); |
14 testInterpolationAt([-0.3, 0, 0.3, 0.6, 1, 1.5], { | 14 testInterpolationAt([-0.3, 0, 0.3, 0.6, 1, 1.5], { |
15 property: '-webkit-transform', | 15 property: 'color', |
16 from: 'rotate(0deg)', | 16 from: 'red', |
17 to: 'rotate(180deg)' | 17 to: 'green' |
18 }); | 18 }); |
19 </script> | 19 </script> |
OLD | NEW |