Index: LayoutTests/animations/interpolation/webkit-mask-position-interpolation.html |
diff --git a/LayoutTests/animations/interpolation/webkit-mask-position-interpolation.html b/LayoutTests/animations/interpolation/webkit-mask-position-interpolation.html |
index 1a8f65d4ca5fad3374eb5b43efd0a8c6b2ca9956..389392a25115486cc21eaba9099576aa3a7fe724 100644 |
--- a/LayoutTests/animations/interpolation/webkit-mask-position-interpolation.html |
+++ b/LayoutTests/animations/interpolation/webkit-mask-position-interpolation.html |
@@ -5,6 +5,9 @@ |
display: inline-block; |
border: 2px solid black; |
} |
+.parent { |
+ -webkit-mask-position: 30px 10px; |
+} |
.target { |
width: 120px; |
height: 120px; |
@@ -13,6 +16,7 @@ |
radial-gradient(20px circle at 20px 20px, black 18px, transparent), |
radial-gradient(20px circle at 20px 20px, black 18px, transparent), |
radial-gradient(20px circle at 20px 20px, black 18px, transparent); |
+ -webkit-mask-position: 10px 30px; |
} |
</style> |
<body> |
@@ -23,6 +27,66 @@ |
</template> |
<script src="resources/interpolation-test.js"></script> |
<script> |
+// neutral |
+assertInterpolation({ |
+ property: '-webkit-mask-position', |
+ from: '', |
+ to: '20px 20px', |
+}, [ |
+ {at: -0.25, is: '7.5px 32.5px, 7.5px 32.5px, 7.5px 32.5px, 7.5px 32.5px'}, |
+ {at: 0, is: '10px 30px, 10px 30px, 10px 30px, 10px 30px'}, |
+ {at: 0.25, is: '12.5px 27.5px, 12.5px 27.5px, 12.5px 27.5px, 12.5px 27.5px'}, |
+ {at: 0.5, is: '15px 25px, 15px 25px, 15px 25px, 15px 25px'}, |
+ {at: 0.75, is: '17.5px 22.5px, 17.5px 22.5px, 17.5px 22.5px, 17.5px 22.5px'}, |
+ {at: 1, is: '20px 20px, 20px 20px, 20px 20px, 20px 20px'}, |
+ {at: 1.25, is: '22.5px 17.5px, 22.5px 17.5px, 22.5px 17.5px, 22.5px 17.5px'}, |
+]); |
+ |
+// initial |
+assertInterpolation({ |
+ property: '-webkit-mask-position', |
+ from: 'initial', |
+ to: '20px 20px', |
+}, [ |
+ {at: -0.25, is: '-5px -5px, -5px -5px, -5px -5px, -5px -5px'}, |
+ {at: 0, is: '0% 0%, 0% 0%, 0% 0%, 0% 0%'}, |
+ {at: 0.25, is: '5px 5px, 5px 5px, 5px 5px, 5px 5px'}, |
+ {at: 0.5, is: '10px 10px, 10px 10px, 10px 10px, 10px 10px'}, |
+ {at: 0.75, is: '15px 15px, 15px 15px, 15px 15px, 15px 15px'}, |
+ {at: 1, is: '20px 20px, 20px 20px, 20px 20px, 20px 20px'}, |
+ {at: 1.25, is: '25px 25px, 25px 25px, 25px 25px, 25px 25px'}, |
+]); |
+ |
+// inherit |
+assertInterpolation({ |
+ property: '-webkit-mask-position', |
+ from: 'inherit', |
+ to: '20px 20px', |
+}, [ |
+ {at: -0.25, is: '32.5px 7.5px, 32.5px 7.5px, 32.5px 7.5px, 32.5px 7.5px'}, |
+ {at: 0, is: '30px 10px, 30px 10px, 30px 10px, 30px 10px'}, |
+ {at: 0.25, is: '27.5px 12.5px, 27.5px 12.5px, 27.5px 12.5px, 27.5px 12.5px'}, |
+ {at: 0.5, is: '25px 15px, 25px 15px, 25px 15px, 25px 15px'}, |
+ {at: 0.75, is: '22.5px 17.5px, 22.5px 17.5px, 22.5px 17.5px, 22.5px 17.5px'}, |
+ {at: 1, is: '20px 20px, 20px 20px, 20px 20px, 20px 20px'}, |
+ {at: 1.25, is: '17.5px 22.5px, 17.5px 22.5px, 17.5px 22.5px, 17.5px 22.5px'}, |
+]); |
+ |
+// unset |
+assertInterpolation({ |
+ property: '-webkit-mask-position', |
+ from: 'unset', |
+ to: '20px 20px', |
+}, [ |
+ {at: -0.25, is: '-5px -5px, -5px -5px, -5px -5px, -5px -5px'}, |
+ {at: 0, is: '0% 0%, 0% 0%, 0% 0%, 0% 0%'}, |
+ {at: 0.25, is: '5px 5px, 5px 5px, 5px 5px, 5px 5px'}, |
+ {at: 0.5, is: '10px 10px, 10px 10px, 10px 10px, 10px 10px'}, |
+ {at: 0.75, is: '15px 15px, 15px 15px, 15px 15px, 15px 15px'}, |
+ {at: 1, is: '20px 20px, 20px 20px, 20px 20px, 20px 20px'}, |
+ {at: 1.25, is: '25px 25px, 25px 25px, 25px 25px, 25px 25px'}, |
+]); |
+ |
// Test equal number of position values as background images. |
assertInterpolation({ |
property: '-webkit-mask-position', |