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

Unified Diff: LayoutTests/animations/interpolation/vertical-align-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/vertical-align-interpolation.html
diff --git a/LayoutTests/animations/interpolation/vertical-align-interpolation.html b/LayoutTests/animations/interpolation/vertical-align-interpolation.html
index 29bb9808dd673c7773131bce9487cbc967b8595e..6344a41504a8110940d13ba76b5638d6b0be799f 100644
--- a/LayoutTests/animations/interpolation/vertical-align-interpolation.html
+++ b/LayoutTests/animations/interpolation/vertical-align-interpolation.html
@@ -1,11 +1,15 @@
<!DOCTYPE html>
<meta charset="UTF-8">
<style>
+.parent {
+ vertical-align: 100px;
+}
.target {
width: 100px;
height: 100px;
background-color: black;
display: inline-block;
+ vertical-align: 10px;
}
.expected {
background-color: green;
@@ -16,6 +20,44 @@
<script>
assertInterpolation({
property: 'vertical-align',
+ from: '',
+ to: '40px',
+}, [
+ {at: -0.5, is: '-5px'},
+ {at: 0, is: '10px'},
+ {at: 0.3, is: '19px'},
+ {at: 0.6, is: '28px'},
+ {at: 1, is: '40px'},
+ {at: 1.5, is: '55px'},
+]);
+
+assertNoInterpolation({
+ property: 'vertical-align',
+ from: 'initial',
+ to: '40px',
+});
+
+assertInterpolation({
+ property: 'vertical-align',
+ from: 'inherit',
+ to: '40px',
+}, [
+ {at: -0.5, is: '130px'},
+ {at: 0, is: '100px'},
+ {at: 0.3, is: '82px'},
+ {at: 0.6, is: '64px'},
+ {at: 1, is: '40px'},
+ {at: 1.5, is: '10px'},
+]);
+
+assertNoInterpolation({
+ property: 'vertical-align',
+ from: 'unset',
+ to: '40px',
+});
+
+assertInterpolation({
+ property: 'vertical-align',
from: '0px',
to: '100px'
}, [

Powered by Google App Engine
This is Rietveld 408576698