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

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

Issue 2650163002: Animations: Smooth interpolation for scale none (Closed)
Patch Set: reviewFeedback Created 3 years, 11 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/scale-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/scale-composition.html
diff --git a/third_party/WebKit/LayoutTests/animations/composition/scale-composition.html b/third_party/WebKit/LayoutTests/animations/composition/scale-composition.html
index 10804698da8066e57d92fca90bf0c57513a356d9..a473b09fad533fdf87ecdf3f8b1d38f1f4fbec6a 100644
--- a/third_party/WebKit/LayoutTests/animations/composition/scale-composition.html
+++ b/third_party/WebKit/LayoutTests/animations/composition/scale-composition.html
@@ -31,5 +31,63 @@ assertComposition({
{at: 1, is: '7 8 9'},
{at: 1.5, is: '8.5 7 4.5'},
]);
+
+assertComposition({
+ property: 'scale',
+ underlying: 'none',
+ addFrom: 'none',
+ replaceTo: '1.5',
+}, [
+ {at: -1, is: '0.5'},
+ {at: 0, is: '1'},
+ {at: 0.25, is: '1.125'},
+ {at: 0.75, is: '1.375'},
+ {at: 1, is: '1.5'},
+ {at: 2, is: '2'},
+]);
+
+assertComposition({
+ property: 'scale',
+ underlying: 'none',
+ addFrom: '4 5 6',
+ replaceTo: 'none',
+}, [
+ {at: -1, is: '7 9 11'},
+ {at: 0, is: '4 5 6'},
+ {at: 0.25, is: '3.25 4 4.75'},
+ {at: 0.75, is: '1.75 2 2.25'},
+ {at: 1, is: 'none'},
+ {at: 2, is: '-2 -3 -4'},
+]);
+
+assertComposition({
+ property: 'scale',
+ underlying: '1 2 3',
+ addFrom: 'none',
+ replaceTo: '7 8 9',
+}, [
+ {at: -0.5, is: '-2 -1 0'},
+ {at: 0, is: '1 2 3'},
+ {at: 0.25, is: '2.5 3.5 4.5'},
+ {at: 0.5, is: '4 5 6'},
+ {at: 0.75, is: '5.5 6.5 7.5'},
+ {at: 1, is: '7 8 9'},
+ {at: 1.5, is: '10 11 12'},
+]);
+
+assertComposition({
+ property: 'scale',
+ underlying: '1 2 3',
+ addFrom: '4 5 6',
+ replaceTo: 'none',
+}, [
+ {at: -0.5, is: '5.5 14.5 26.5'},
+ {at: 0, is: '4 10 18'},
+ {at: 0.25, is: '3.25 7.75 13.75'},
+ {at: 0.5, is: '2.5 5.5 9.5'},
+ {at: 0.75, is: '1.75 3.25 5.25'},
+ {at: 1, is: 'none'},
+ {at: 1.5, is: '-0.5 -3.5 -7.5'},
+]);
</script>
</body>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/animations/interpolation/scale-interpolation.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698