Index: LayoutTests/animations/interpolation/bottom-interpolation.html |
diff --git a/LayoutTests/animations/interpolation/bottom-interpolation.html b/LayoutTests/animations/interpolation/bottom-interpolation.html |
index e3e4d04f2cca951a32ec93e99dfb85f2b803ebcd..e551d43a5c0f449bc6cf158790311ad59fdd8b4c 100644 |
--- a/LayoutTests/animations/interpolation/bottom-interpolation.html |
+++ b/LayoutTests/animations/interpolation/bottom-interpolation.html |
@@ -1,6 +1,9 @@ |
<!DOCTYPE html> |
<meta charset="UTF-8"> |
<style> |
+.parent { |
+ bottom: 30px; |
+} |
.target { |
position: relative; |
width: 100px; |
@@ -8,6 +11,7 @@ |
background-color: black; |
display: inline-block; |
margin: 20px 5px 20px 0px; |
+ bottom: 10px; |
} |
.expected { |
background-color: green; |
@@ -18,6 +22,42 @@ |
<script> |
assertInterpolation({ |
property: 'bottom', |
+ from: '', |
+ to: '20px', |
+}, [ |
+ {at: -0.3, is: '7px'}, |
+ {at: 0, is: '10px'}, |
+ {at: 0.5, is: '15px'}, |
+ {at: 1, is: '20px'}, |
+ {at: 1.5, is: '25px'}, |
+]); |
+ |
+assertNoInterpolation({ |
+ property: 'bottom', |
+ from: 'initial', |
+ to: '20px', |
+}); |
+ |
+assertInterpolation({ |
+ property: 'bottom', |
+ from: 'inherit', |
+ to: '20px', |
+}, [ |
+ {at: -0.3, is: '33px'}, |
+ {at: 0, is: '30px'}, |
+ {at: 0.5, is: '25px'}, |
+ {at: 1, is: '20px'}, |
+ {at: 1.5, is: '15px'}, |
+]); |
+ |
+assertNoInterpolation({ |
+ property: 'bottom', |
+ from: 'unset', |
+ to: '20px', |
+}); |
+ |
+assertInterpolation({ |
+ property: 'bottom', |
from: '-10px', |
to: '10px' |
}, [ |