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

Unified Diff: LayoutTests/animations/interpolation/background-position-interpolation.html

Issue 26247003: Web Animations CSS: Support animation of background-position and background-image (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Review changes Created 7 years, 2 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/background-position-interpolation.html
diff --git a/LayoutTests/animations/interpolation/background-position-interpolation.html b/LayoutTests/animations/interpolation/background-position-interpolation.html
new file mode 100644
index 0000000000000000000000000000000000000000..1dc8d9c113cac68d2d4f708b8002ce5aa6ef587c
--- /dev/null
+++ b/LayoutTests/animations/interpolation/background-position-interpolation.html
@@ -0,0 +1,49 @@
+<!DOCTYPE html>
+<meta charset="UTF-8">
+<style>
+.target {
+ width: 120px;
+ height: 120px;
+ display: inline-block;
+ border: 2px solid black;
+ background-repeat: no-repeat;
+ background-image: radial-gradient(20px circle at 20px 20px, red 18px, transparent),
+ radial-gradient(20px circle at 20px 20px, yellow 18px, transparent),
+ radial-gradient(20px circle at 20px 20px, lime 18px, transparent),
+ radial-gradient(20px circle at 20px 20px, blue 18px, transparent);
+}
+.replica {
+ margin-right: 10px;
+}
+</style>
+<body>
+<script src="resources/interpolation-test.js"></script>
+<script>
+assertInterpolation({
+ property: 'background-position',
+ from: '0px 0px, 80px 0px',
Steve Block 2013/10/09 23:19:05 Superfluous space (or make these line up as you do
alancutter (OOO until 2018) 2013/10/10 00:58:38 Removed space.
+ to: '40px 40px, 80px 80px, 0px 80px',
+}, [
+ {at: -0.25, is: '-10px -10px, 80px -20px, 0px -20px, 90px -10px'},
+ {at: 0, is: ' 0px 0px, 80px 0px, 0px 0px, 80px 0px'},
+ {at: 0.25, is: ' 10px 10px, 80px 20px, 0px 20px, 70px 10px'},
+ {at: 0.5, is: ' 20px 20px, 80px 40px, 0px 40px, 60px 20px'},
+ {at: 0.75, is: ' 30px 30px, 80px 60px, 0px 60px, 50px 30px'},
+ {at: 1, is: ' 40px 40px, 80px 80px, 0px 80px, 40px 40px'},
+ {at: 1.25, is: ' 50px 50px, 80px 100px, 0px 100px, 30px 50px'},
+]);
+assertInterpolation({
+ property: 'background-position',
+ from: 'top 0px left 0px',
+ to: 'left 80px top 80px',
dstockwell 2013/10/09 23:15:07 test a matching case too? can we get a PASS from t
alancutter (OOO until 2018) 2013/10/10 00:58:38 Added test for matching number of position values
+}, [
+ {at: -0.25, is: '-20px -20px, -20px -20px, -20px -20px, -20px -20px'},
+ {at: 0, is: ' 0px 0px, 0px 0px, 0px 0px, 0px 0px'},
+ {at: 0.25, is: ' 20px 20px, 20px 20px, 20px 20px, 20px 20px'},
+ {at: 0.5, is: ' 40px 40px, 40px 40px, 40px 40px, 40px 40px'},
+ {at: 0.75, is: ' 60px 60px, 60px 60px, 60px 60px, 60px 60px'},
+ {at: 1, is: ' 80px 80px, 80px 80px, 80px 80px, 80px 80px'},
+ {at: 1.25, is: '100px 100px, 100px 100px, 100px 100px, 100px 100px'},
+]);
+</script>
+</body>

Powered by Google App Engine
This is Rietveld 408576698