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

Unified Diff: LayoutTests/animations/interpolation/webkit-clip-path-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/webkit-clip-path-interpolation.html
diff --git a/LayoutTests/animations/interpolation/webkit-clip-path-interpolation.html b/LayoutTests/animations/interpolation/webkit-clip-path-interpolation.html
index ea5ef526fd6b5d992edc89d5233185b958552325..b0e73799f585c487b33bebff21fff915f80db825 100644
--- a/LayoutTests/animations/interpolation/webkit-clip-path-interpolation.html
+++ b/LayoutTests/animations/interpolation/webkit-clip-path-interpolation.html
@@ -1,18 +1,19 @@
<!DOCTYPE html>
<meta charset="UTF-8">
<style>
+.parent {
+ -webkit-clip-path: inset(10px);
+ padding: 10px;
+}
.target {
+ display: inline-block;
width: 100px;
height: 100px;
+ background-color: black;
+ -webkit-clip-path: inset(10px);
}
-.actual {
- background-color: green;
- display: inline-block;
-}
-
.expected {
- background-color: black;
- display: inline-block;
+ background-color: green;
}
</style>
<body>
@@ -20,6 +21,44 @@
<script>
assertInterpolation({
property: '-webkit-clip-path',
+ from: '',
+ to: 'inset(20px)',
+}, [
+ {at: -0.3, is: 'inset(7px)'},
+ {at: 0, is: 'inset(10px)'},
+ {at: 0.3, is: 'inset(13px)'},
+ {at: 0.6, is: 'inset(16px)'},
+ {at: 1, is: 'inset(20px)'},
+ {at: 1.5, is: 'inset(25px)'},
+]);
+
+assertNoInterpolation({
+ property: '-webkit-clip-path',
+ from: 'initial',
+ to: 'inset(20px)',
+});
+
+assertInterpolation({
+ property: '-webkit-clip-path',
+ from: 'inherit',
+ to: 'inset(20px)',
+}, [
+ {at: -0.3, is: 'inset(7px)'},
+ {at: 0, is: 'inset(10px)'},
+ {at: 0.3, is: 'inset(13px)'},
+ {at: 0.6, is: 'inset(16px)'},
+ {at: 1, is: 'inset(20px)'},
+ {at: 1.5, is: 'inset(25px)'},
+]);
+
+assertNoInterpolation({
+ property: '-webkit-clip-path',
+ from: 'unset',
+ to: 'inset(20px)',
+});
+
+assertInterpolation({
+ property: '-webkit-clip-path',
from: 'circle(10px at 25px 75px)',
to: 'circle(50px at 50px 50px)'
}, [

Powered by Google App Engine
This is Rietveld 408576698