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

Unified Diff: LayoutTests/animations/interpolation/flex-interpolation.html

Issue 811993002: Animation: Implement DoubleStyleInterpolation in StringKeyframe (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created more layout tests Created 5 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
Index: LayoutTests/animations/interpolation/flex-interpolation.html
diff --git a/LayoutTests/animations/interpolation/flex-interpolation.html b/LayoutTests/animations/interpolation/flex-interpolation.html
index 58d3c578618aaad46855e3809c2a6417cdbbe073..f4afb4c849efb8162a6248a592c4fac155dd0052 100644
--- a/LayoutTests/animations/interpolation/flex-interpolation.html
+++ b/LayoutTests/animations/interpolation/flex-interpolation.html
@@ -50,5 +50,29 @@ assertInterpolation({
{at: 1, is: '1 1 100%'},
{at: 1.5, is: '1 1 100%'}
]);
+assertInterpolation({
+ property: 'flex-shrink',
+ from: '0',
+ to: '1'
+}, [
+ {at: -0.3, is: '0'},
+ {at: 0, is: '0'},
+ {at: 0.4, is: '0'},
+ {at: 0.6, is: '1'},
+ {at: 1, is: '1'},
+ {at: 1.5, is: '1'}
+]);
+assertInterpolation({
+ property: 'flex-grow',
+ from: '0',
+ to: '1'
+}, [
+ {at: -0.3, is: '0'},
+ {at: 0, is: '0'},
+ {at: 0.4, is: '0'},
+ {at: 0.6, is: '1'},
+ {at: 1, is: '1'},
+ {at: 1.5, is: '1'}
alancutter (OOO until 2018) 2015/02/04 20:24:37 This is incorrect, these are animatable as non-neg
jadeg 2015/02/05 23:37:01 The CSSValues dont seem to conform to this though,
+]);
</script>
</body>

Powered by Google App Engine
This is Rietveld 408576698