Chromium Code Reviews| 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 /* FIXME: Remove when interpolation of clip is fixed: http://crbug.com/279684 */ | |
| 11 clip: rect(auto, auto, auto, auto); | |
| 12 top: 300px; | |
| 13 } | |
| 14 #test0 { left: 0px; } | |
| 15 #test1 { left: 100px; } | |
| 16 #test2 { left: 200px; } | |
| 17 #test3 { left: 300px; } | |
| 18 #test4 { left: 400px; } | |
| 19 | |
| 20 #test5 { left: 510px; background: orange; } | |
| 21 #test6 { left: 610px; background: orange; } | |
| 22 | |
| 23 #test7 { left: 720px; background: green; } | |
| 24 #test8 { left: 820px; background: green; } | |
| 25 | |
| 26 #test9, #test10 { clip: auto; } | |
| 27 #test9 { left: 720px; background: teal; } | |
| 28 #test10 { left: 820px; background: teal; } | |
| 29 </style> | |
| 30 <script src="resources/interpolation-test.js"></script> | |
| 31 <script> | |
| 32 testInterpolationAt([-1, 0, 0.5, 1, 1.5], { | |
| 33 property: 'clip', | |
| 34 from: 'rect(0px, 75px, 80px, 10px)', | |
| 35 to: 'rect(0px, 100px, 90px, 5px)' | |
| 36 }); | |
| 37 | |
| 38 testInterpolationAt([0.4, 0.6], { | |
| 39 property: 'clip', | |
| 40 from: 'rect(auto, auto, auto, 10px)', | |
| 41 to: 'rect(20px, 50px, 50px, auto)' | |
| 42 }); | |
| 43 | |
| 44 testInterpolationAt([0.4, 0.6], { | |
| 45 property: 'clip', | |
| 46 from: 'rect(auto, 0px, auto, 10px)', | |
| 47 to: 'rect(auto, 50px, 50px, auto)' | |
| 48 }); | |
| 49 | |
| 50 testInterpolationAt([0.25, 0.75], { | |
| 51 property: 'clip', | |
| 52 from: 'auto', | |
| 53 to: 'rect(0px, 50px, 50px, 0px)' | |
| 54 }); | |
|
Steve Block
2013/08/28 03:44:23
It would be good to test interpolation to/from 'au
dstockwell
2013/08/28 08:21:22
Done.
| |
| 55 </script> | |
| OLD | NEW |