| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html> |
| 2 <body> |
| 3 <style> |
| 4 .target { |
| 5 width: 80px; |
| 6 height: 80px; |
| 7 background-color: blue; |
| 8 display: inline-block; |
| 9 position: absolute; |
| 10 clip: rect(auto, auto, auto, auto); |
| 11 top: 200px; |
| 12 } |
| 13 #test0 { left: 0px; } |
| 14 #test1 { left: 100px; } |
| 15 #test2 { left: 200px; } |
| 16 #test3 { left: 300px; } |
| 17 #test4 { left: 400px; } |
| 18 |
| 19 #test5 { left: 510px; background: orange; } |
| 20 #test6 { left: 610px; background: orange; } |
| 21 </style> |
| 22 <script src="resources/interpolation-test.js"></script> |
| 23 <script> |
| 24 testInterpolationAt([-1, 0, 0.5, 1, 1.5], { |
| 25 property: 'clip', |
| 26 from: 'rect(0px, 75px, 80px, 10px)', |
| 27 to: 'rect(0px, 100px, 90px, 5px)' |
| 28 }); |
| 29 |
| 30 testInterpolationAt([0.4, 0.6], { |
| 31 property: 'clip', |
| 32 from: 'rect(auto, auto, auto, 10px)', |
| 33 to: 'rect(20px, 50px, 50px, auto)' |
| 34 }); |
| 35 </script> |
| OLD | NEW |