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

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: Fix baselines for new test. 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..1b4cbbf2671ff0a62db9038738e3c87fffab48df
--- /dev/null
+++ b/LayoutTests/animations/interpolation/clip-interpolation.html
@@ -0,0 +1,35 @@
+<!DOCTYPE html>
+<body>
+<style>
+.target {
+ width: 80px;
+ height: 80px;
+ background-color: blue;
+ display: inline-block;
+ position: absolute;
+ clip: rect(auto, auto, auto, auto);
+ top: 200px;
+}
+#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; }
+</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)'
+});
+</script>

Powered by Google App Engine
This is Rietveld 408576698