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

Unified Diff: third_party/WebKit/LayoutTests/animations/composition/object-position-composition.html

Issue 1690543002: Add additive animation support for CSS properties perspective-origin and object-position (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@_backgroundPositionAnimation
Patch Set: Rebased Created 4 years, 10 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/animations/composition/perspective-origin-composition.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/animations/composition/object-position-composition.html
diff --git a/third_party/WebKit/LayoutTests/animations/composition/object-position-composition.html b/third_party/WebKit/LayoutTests/animations/composition/object-position-composition.html
new file mode 100644
index 0000000000000000000000000000000000000000..d954139037fb845d31cade8ab257fd6869280da0
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/animations/composition/object-position-composition.html
@@ -0,0 +1,64 @@
+<!DOCTYPE html>
+<body>
+<script src="../interpolation/resources/interpolation-test.js"></script>
+<script>
+assertComposition({
+ property: 'object-position',
+ underlying: '40px 60px',
+ addFrom: '60px 40px',
+ addTo: '160px 140px',
+}, [
+ {at: -0.25, is: '75px 75px'},
+ {at: 0, is: '100px 100px'},
+ {at: 0.25, is: '125px 125px'},
+ {at: 0.5, is: '150px 150px'},
+ {at: 0.75, is: '175px 175px'},
+ {at: 1, is: '200px 200px'},
+ {at: 1.25, is: '225px 225px'},
+]);
+
+assertComposition({
+ property: 'object-position',
+ underlying: 'top 20% left 40%',
+ addFrom: 'left 60% top 80%',
+ addTo: 'right 80% bottom 40%',
+}, [
+ {at: -0.25, is: '110% 105%'},
+ {at: 0, is: '100% 100%'},
+ {at: 0.25, is: '90% 95%'},
+ {at: 0.5, is: '80% 90%'},
+ {at: 0.75, is: '70% 85%'},
+ {at: 1, is: '60% 80%'},
+ {at: 1.25, is: '50% 75%'},
+]);
+
+assertComposition({
+ property: 'object-position',
+ underlying: '40px 60px',
+ replaceFrom: '100px 200px',
+ addTo: '160px 40px',
+}, [
+ {at: -0.25, is: '75px 225px'},
+ {at: 0, is: '100px 200px'},
+ {at: 0.25, is: '125px 175px'},
+ {at: 0.5, is: '150px 150px'},
+ {at: 0.75, is: '175px 125px'},
+ {at: 1, is: '200px 100px'},
+ {at: 1.25, is: '225px 75px'},
+]);
+
+assertComposition({
+ property: 'object-position',
+ underlying: '40px 60px',
+ addFrom: '60px 140px',
+ replaceTo: '200px 100px',
+}, [
+ {at: -0.25, is: '75px 225px'},
+ {at: 0, is: '100px 200px'},
+ {at: 0.25, is: '125px 175px'},
+ {at: 0.5, is: '150px 150px'},
+ {at: 0.75, is: '175px 125px'},
+ {at: 1, is: '200px 100px'},
+ {at: 1.25, is: '225px 75px'},
+]);</script>
+</body>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/animations/composition/perspective-origin-composition.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698