Index: LayoutTests/animations/interpolation/webkit-mask-box-image-width-interpolation.html |
diff --git a/LayoutTests/animations/interpolation/webkit-mask-box-image-width-interpolation.html b/LayoutTests/animations/interpolation/webkit-mask-box-image-width-interpolation.html |
index c3de4aa424713133af21f925d4e82fcb3304d122..2e09f75afd607512c15f3aa31fc6bf06db9ff343 100644 |
--- a/LayoutTests/animations/interpolation/webkit-mask-box-image-width-interpolation.html |
+++ b/LayoutTests/animations/interpolation/webkit-mask-box-image-width-interpolation.html |
@@ -1,13 +1,16 @@ |
<!DOCTYPE html> |
<meta charset="UTF-8"> |
<style> |
+.parent { |
+ -webkit-mask-box-image-width: 30px; |
+} |
.target { |
width: 100px; |
height: 100px; |
background-color: black; |
display: inline-block; |
- -webkit-mask-box-image-width: 5px; |
-webkit-mask-box-image-source: linear-gradient(45deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1)); |
+ -webkit-mask-box-image-width: 10px; |
} |
.expected { |
background-color: green; |
@@ -19,6 +22,48 @@ |
<script> |
assertInterpolation({ |
property: '-webkit-mask-box-image-width', |
+ from: '', |
+ to: '20px', |
+}, [ |
+ {at: -0.3, is: '7px'}, |
+ {at: 0, is: '10px'}, |
+ {at: 0.3, is: '13px'}, |
+ {at: 0.6, is: '16px'}, |
+ {at: 1, is: '20px'}, |
+ {at: 1.5, is: '25px'}, |
+ {at: 5, is: '60px'}, |
+ {at: 10, is: '110px'}, |
+]); |
+ |
+assertNoInterpolation({ |
+ property: '-webkit-mask-box-image-width', |
+ from: 'initial', |
+ to: '20px', |
+}); |
+ |
+assertInterpolation({ |
+ property: '-webkit-mask-box-image-width', |
+ from: 'inherit', |
+ to: '20px', |
+}, [ |
+ {at: -0.3, is: '33px'}, |
+ {at: 0, is: '30px'}, |
+ {at: 0.3, is: '27px'}, |
+ {at: 0.6, is: '24px'}, |
+ {at: 1, is: '20px'}, |
+ {at: 1.5, is: '15px'}, |
+ {at: 5, is: '0px'}, |
+ {at: 10, is: '0px'}, |
+]); |
+ |
+assertNoInterpolation({ |
+ property: '-webkit-mask-box-image-width', |
+ from: 'unset', |
+ to: '20px', |
+}); |
+ |
+assertInterpolation({ |
+ property: '-webkit-mask-box-image-width', |
from: '0px', |
to: '20px' |
}, [ |