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

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

Issue 1265873002: Add test coverage for interpolations using CSS wide keywords and neutral keyframes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 5 years, 4 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/translate-interpolation.html
diff --git a/LayoutTests/animations/interpolation/translate-interpolation.html b/LayoutTests/animations/interpolation/translate-interpolation.html
index 5051cbdf058ba8794153faa95092a1a08ddc3de8..456c26991b4c13dac449f6947b13343aeb8e89ed 100644
--- a/LayoutTests/animations/interpolation/translate-interpolation.html
+++ b/LayoutTests/animations/interpolation/translate-interpolation.html
@@ -8,6 +8,7 @@
width: 100px;
height: 100px;
background-color: black;
+ translate: 10px;
}
.expected {
background-color: green;
@@ -22,6 +23,32 @@
<script>
assertInterpolation({
property: 'translate',
+ from: '',
+ to: '20px',
+}, [
+ {at: -1, is: '0px'},
+ {at: 0, is: '10px'},
+ {at: 0.25, is: '12.5px'},
+ {at: 0.75, is: '17.5px'},
+ {at: 1, is: '20px'},
+ {at: 2, is: '30px'},
+]);
+
+assertInterpolation({
+ property: 'translate',
+ from: 'unset',
+ to: '20px',
+}, [
+ {at: -1, is: '-20px'},
+ {at: 0, is: '0px'},
+ {at: 0.25, is: '5px'},
+ {at: 0.75, is: '15px'},
+ {at: 1, is: '20px'},
+ {at: 2, is: '40px'},
+]);
+
+assertInterpolation({
+ property: 'translate',
from: '-100px',
to: '100px',
}, [

Powered by Google App Engine
This is Rietveld 408576698