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

Unified Diff: LayoutTests/animations/interpolation/right-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/right-interpolation.html
diff --git a/LayoutTests/animations/interpolation/right-interpolation.html b/LayoutTests/animations/interpolation/right-interpolation.html
index b67dabd334c688a48d2ccc940d8ac9133a297624..4968fabd32d3810b492cb8077298c33bf68507b2 100644
--- a/LayoutTests/animations/interpolation/right-interpolation.html
+++ b/LayoutTests/animations/interpolation/right-interpolation.html
@@ -1,17 +1,19 @@
<!DOCTYPE html>
<meta charset="UTF-8">
<style>
+.parent {
+ margin-left: 40px;
+ right: 30px;
+}
.target {
position: relative;
- width: 100px;
- height: 100px;
+ width: 10px;
+ height: 10px;
background-color: black;
- display: inline-block;
- margin-left: 15px;
+ right: 10px;
}
.expected {
background-color: green;
- margin-left: 0px;
}
</style>
<body>
@@ -19,6 +21,42 @@
<script>
assertInterpolation({
property: 'right',
+ from: '',
+ to: '20px',
+}, [
+ {at: -0.3, is: '7px'},
+ {at: 0, is: '10px'},
+ {at: 0.5, is: '15px'},
+ {at: 1, is: '20px'},
+ {at: 1.5, is: '25px'},
+]);
+
+assertNoInterpolation({
+ property: 'right',
+ from: 'initial',
+ to: '20px',
+});
+
+assertInterpolation({
+ property: 'right',
+ from: 'inherit',
+ to: '20px',
+}, [
+ {at: -0.3, is: '33px'},
+ {at: 0, is: '30px'},
+ {at: 0.5, is: '25px'},
+ {at: 1, is: '20px'},
+ {at: 1.5, is: '15px'},
+]);
+
+assertNoInterpolation({
+ property: 'right',
+ from: 'unset',
+ to: '20px',
+});
+
+assertInterpolation({
+ property: 'right',
from: '-10px',
to: '10px'
}, [

Powered by Google App Engine
This is Rietveld 408576698