Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(86)

Unified Diff: LayoutTests/animations/interpolation/clip-interpolation.html

Issue 22799020: Web Animations CSS: Support Animation of StyleImage and LengthBox (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update length conversion for keywords. Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698