Chromium Code Reviews| Index: LayoutTests/animations/interpolation/clip-interpolation.html |
| diff --git a/LayoutTests/animations/interpolation/clip-interpolation.html b/LayoutTests/animations/interpolation/clip-interpolation.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..81c899d16b539a810aece86ce21846cd39ad9d5f |
| --- /dev/null |
| +++ b/LayoutTests/animations/interpolation/clip-interpolation.html |
| @@ -0,0 +1,55 @@ |
| +<!DOCTYPE html> |
| +<body> |
| +<style> |
| +.target { |
| + width: 80px; |
| + height: 80px; |
| + background-color: blue; |
| + display: inline-block; |
| + position: absolute; |
| + /* FIXME: Remove when interpolation of clip is fixed: http://crbug.com/279684 */ |
| + clip: rect(auto, auto, auto, auto); |
| + top: 300px; |
| +} |
| +#test0 { left: 0px; } |
| +#test1 { left: 100px; } |
| +#test2 { left: 200px; } |
| +#test3 { left: 300px; } |
| +#test4 { left: 400px; } |
| + |
| +#test5 { left: 510px; background: orange; } |
| +#test6 { left: 610px; background: orange; } |
| + |
| +#test7 { left: 720px; background: green; } |
| +#test8 { left: 820px; background: green; } |
| + |
| +#test9, #test10 { clip: auto; } |
| +#test9 { left: 720px; background: teal; } |
| +#test10 { left: 820px; background: teal; } |
| +</style> |
| +<script src="resources/interpolation-test.js"></script> |
| +<script> |
| +testInterpolationAt([-1, 0, 0.5, 1, 1.5], { |
| + property: 'clip', |
| + from: 'rect(0px, 75px, 80px, 10px)', |
| + to: 'rect(0px, 100px, 90px, 5px)' |
| +}); |
| + |
| +testInterpolationAt([0.4, 0.6], { |
| + property: 'clip', |
| + from: 'rect(auto, auto, auto, 10px)', |
| + to: 'rect(20px, 50px, 50px, auto)' |
| +}); |
| + |
| +testInterpolationAt([0.4, 0.6], { |
| + property: 'clip', |
| + from: 'rect(auto, 0px, auto, 10px)', |
| + to: 'rect(auto, 50px, 50px, auto)' |
| +}); |
| + |
| +testInterpolationAt([0.25, 0.75], { |
| + property: 'clip', |
| + from: 'auto', |
| + to: 'rect(0px, 50px, 50px, 0px)' |
| +}); |
|
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.
|
| +</script> |