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)' |
}, [ |