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

Unified Diff: LayoutTests/animations/interpolation/scale-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/scale-interpolation.html
diff --git a/LayoutTests/animations/interpolation/scale-interpolation.html b/LayoutTests/animations/interpolation/scale-interpolation.html
index 582cbc9a35434e6874a5655d15be017d66a0197c..41344b5127a90ca28158e256cd76f60fd48e7975 100644
--- a/LayoutTests/animations/interpolation/scale-interpolation.html
+++ b/LayoutTests/animations/interpolation/scale-interpolation.html
@@ -5,9 +5,10 @@
scale: 0.5 1 2
}
.target {
- width: 100px;
- height: 100px;
+ width: 10px;
+ height: 10px;
background-color: black;
+ scale: 1.1;
}
.expected {
background-color: green;
@@ -22,6 +23,32 @@
<script>
assertInterpolation({
property: 'scale',
+ from: '',
+ to: '1.5',
+}, [
+ {at: -1, is: '0.7 0.7'},
+ {at: 0, is: '1.1 1.1'},
+ {at: 0.25, is: '1.2 1.2'},
+ {at: 0.75, is: '1.4 1.4'},
+ {at: 1, is: '1.5 1.5'},
+ {at: 2, is: '1.9 1.9'},
+]);
+
+assertInterpolation({
+ property: 'scale',
+ from: 'unset',
+ to: '1.5',
+}, [
+ {at: -1, is: '0.5 0.5'},
+ {at: 0, is: '1'},
+ {at: 0.25, is: '1.125 1.125'},
+ {at: 0.75, is: '1.375 1.375'},
+ {at: 1, is: '1.5 1.5'},
+ {at: 2, is: '2 2'},
+]);
+
+assertInterpolation({
+ property: 'scale',
from: '-10',
to: '10',
}, [

Powered by Google App Engine
This is Rietveld 408576698