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

Unified Diff: LayoutTests/animations/interpolation/z-index-interpolation.html

Issue 811993002: Animation: Implement DoubleStyleInterpolation in StringKeyframe (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove shape image threshold test 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/z-index-interpolation.html
diff --git a/LayoutTests/animations/interpolation/z-index-interpolation.html b/LayoutTests/animations/interpolation/z-index-interpolation.html
index b1dbec6100f10c7803dc17dd3efec31853bea595..e7c6f2b3689039fee9d3c2b6397c1a53c860c34e 100644
--- a/LayoutTests/animations/interpolation/z-index-interpolation.html
+++ b/LayoutTests/animations/interpolation/z-index-interpolation.html
@@ -54,6 +54,31 @@ assertInterpolation({
{at: 1, is: '5'},
{at: 1.5, is: '10'},
]);
+assertInterpolation({
+ property: 'z-index',
+ from: '2',
+ to: '4'
+}, [
+ {at: -0.3, is: '1'},
+ {at: 0, is: '2'},
+ {at: 0.3, is: '3'},
+ {at: 0.6, is: '3'},
+ {at: 1, is: '4'},
+ {at: 1.5, is: '5'},
+]);
+assertInterpolation({
+ property: 'z-index',
+ from: '-2',
+ to: '-4'
+}, [
+ {at: -0.3, is: '-1'},
+ {at: 0, is: '-2'},
+ {at: 0.1, is: '-2'},
+ {at: 0.3, is: '-3'},
+ {at: 0.6, is: '-3'},
+ {at: 1, is: '-4'},
+ {at: 1.5, is: '-5'},
+]);
afterTest(function() {
var actives = document.querySelectorAll('.active');
var replicas = document.querySelectorAll('.replica');

Powered by Google App Engine
This is Rietveld 408576698