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

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

Issue 2680163004: Animations: Smooth interpolation for translate none (Closed)
Patch Set: createNoneValue isNoneValue Created 3 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/interpolation/translate-interpolation.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/translate-composition.html
diff --git a/third_party/WebKit/LayoutTests/animations/composition/translate-composition.html b/third_party/WebKit/LayoutTests/animations/composition/translate-composition.html
index 828728019a6e9a685229b473ce1b43e3c9fab6f2..e12f240b64502c8317495a228aade184d2ff6abb 100644
--- a/third_party/WebKit/LayoutTests/animations/composition/translate-composition.html
+++ b/third_party/WebKit/LayoutTests/animations/composition/translate-composition.html
@@ -49,5 +49,91 @@ assertComposition({
{at: 1, is: '300px 250px 400px'},
{at: 2, is: '550px 400px 800px'},
]);
+
+assertComposition({
+ property: 'translate',
+ underlying: 'none',
+ replaceFrom: 'none',
+ addTo: '100px',
+}, [
+ {at: -1, is: '-100px'},
+ {at: 0, is: 'none'},
+ {at: 0.25, is: '25px'},
+ {at: 0.75, is: '75px'},
+ {at: 1, is: '100px'},
+ {at: 2, is: '200px'},
+]);
+
+assertComposition({
+ property: 'translate',
+ underlying: 'none',
+ addFrom: 'none',
+ addTo: '100px',
+}, [
+ {at: -1, is: '-100px'},
+ {at: 0, is: 'none'},
+ {at: 0.25, is: '25px'},
+ {at: 0.75, is: '75px'},
+ {at: 1, is: '100px'},
+ {at: 2, is: '200px'},
+]);
+
+assertComposition({
+ property: 'translate',
+ underlying: 'none',
+ replaceFrom: '0px 40px 60px',
+ replaceTo: 'none',
+}, [
+ {at: -1, is: '0px 80px 120px'},
+ {at: 0, is: '0px 40px 60px'},
+ {at: 0.25, is: '0px 30px 45px'},
+ {at: 0.75, is: '0px 10px 15px'},
+ {at: 1, is: 'none'},
+ {at: 2, is: '0px -40px -60px'},
+]);
+
+assertComposition({
+ property: 'translate',
+ underlying: 'none',
+ replaceFrom: '0px 40px 60px',
+ addTo: 'none',
+}, [
+ {at: -1, is: '0px 80px 120px'},
+ {at: 0, is: '0px 40px 60px'},
+ {at: 0.25, is: '0px 30px 45px'},
+ {at: 0.75, is: '0px 10px 15px'},
+ {at: 1, is: 'none'},
+ {at: 2, is: '0px -40px -60px'},
+]);
+
+assertComposition({
+ property: 'translate',
+ underlying: '80px 20px',
+ addFrom: 'none',
+ replaceTo: '0px 40px 60px',
+}, [
+ {at: -1, is: '160px 0px -60px'},
+ {at: 0, is: '80px 20px'},
+ {at: 0.25, is: '60px 25px 15px'},
+ {at: 0.5, is: '40px 30px 30px'},
+ {at: 0.75, is: '20px 35px 45px'},
+ {at: 1, is: '0px 40px 60px'},
+ {at: 2, is: '-80px 60px 120px'},
+]);
+
+assertComposition({
+ property: 'translate',
+ underlying: '80px 20px',
+ addFrom: '0px 40px 60px',
+ replaceTo: 'none',
+}, [
+ {at: -1, is: '160px 120px 120px'},
+ {at: 0, is: '80px 60px 60px'},
+ {at: 0.25, is: '60px 45px 45px'},
+ {at: 0.5, is: '40px 30px 30px'},
+ {at: 0.75, is: '20px 15px 15px'},
+ {at: 1, is: 'none'},
+ {at: 2, is: '-80px -60px -60px'},
+]);
</script>
</body>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/animations/interpolation/translate-interpolation.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698