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

Unified Diff: LayoutTests/animations/interpolation/clip-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/clip-interpolation.html
diff --git a/LayoutTests/animations/interpolation/clip-interpolation.html b/LayoutTests/animations/interpolation/clip-interpolation.html
index 25798ed0b32015ac133e48b26be16342c3e1e27a..a49f6e01144442632642c8e718176cb4b2f043b4 100644
--- a/LayoutTests/animations/interpolation/clip-interpolation.html
+++ b/LayoutTests/animations/interpolation/clip-interpolation.html
@@ -11,12 +11,16 @@
.container:nth-child(2n) {
background: green;
}
+.parent {
+ clip: rect(100px, 0px, 100px, 0px);
+}
.target {
width: 80px;
height: 80px;
display: inline-block;
position: absolute;
background: white;
+ clip: rect(0px, 100px, 0px, 100px);
}
</style>
<template id="target-template">
@@ -26,6 +30,44 @@
<script>
assertInterpolation({
property: 'clip',
+ from: '',
+ to: 'rect(20px, 20px, 20px, 20px)',
+}, [
+ {at: -1, is: 'rect(-20px 180px -20px 180px)'},
+ {at: 0, is: 'rect(0px 100px 0px 100px)'},
+ {at: 0.25, is: 'rect(5px 80px 5px 80px)'},
+ {at: 0.75, is: 'rect(15px 40px 15px 40px)'},
+ {at: 1, is: 'rect(20px 20px 20px 20px)'},
+ {at: 2, is: 'rect(40px -60px 40px -60px)'},
+]);
+
+assertNoInterpolation({
+ property: 'clip',
+ from: 'initial',
+ to: 'rect(20px, 20px, 20px, 20px)',
+});
+
+assertInterpolation({
+ property: 'clip',
+ from: 'inherit',
+ to: 'rect(20px, 20px, 20px, 20px)',
+}, [
+ {at: -1, is: 'rect(180px -20px 180px -20px)'},
+ {at: 0, is: 'rect(100px 0px 100px 0px)'},
+ {at: 0.25, is: 'rect(80px 5px 80px 5px)'},
+ {at: 0.75, is: 'rect(40px 15px 40px 15px)'},
+ {at: 1, is: 'rect(20px 20px 20px 20px)'},
+ {at: 2, is: 'rect(-60px 40px -60px 40px)'},
+]);
+
+assertNoInterpolation({
+ property: 'clip',
+ from: 'unset',
+ to: 'rect(20px, 20px, 20px, 20px)',
+});
+
+assertInterpolation({
+ property: 'clip',
from: 'rect(0px, 75px, 80px, 10px)',
to: 'rect(0px, 100px, 90px, 5px)'
}, [

Powered by Google App Engine
This is Rietveld 408576698