Index: LayoutTests/animations/interpolation/min-height-interpolation.html |
diff --git a/LayoutTests/animations/interpolation/min-height-interpolation.html b/LayoutTests/animations/interpolation/min-height-interpolation.html |
index 1f6aa2dc70ee254889689b00b70f3f14686c919f..5eaf66e9f0ed09ebd72f4e47f5bf6ad439a4fe7d 100644 |
--- a/LayoutTests/animations/interpolation/min-height-interpolation.html |
+++ b/LayoutTests/animations/interpolation/min-height-interpolation.html |
@@ -1,11 +1,15 @@ |
<!DOCTYPE html> |
<meta charset="UTF-8"> |
<style> |
+.parent { |
+ min-height: 30px; |
+} |
.target { |
- width: 100px; |
+ width: 10px; |
height: 0px; |
background-color: black; |
display: inline-block; |
+ min-height: 10px; |
} |
.expected { |
background-color: green; |
@@ -16,8 +20,47 @@ |
<script> |
assertInterpolation({ |
property: 'min-height', |
+ from: '', |
+ to: '20px', |
+}, [ |
+ {at: -0.5, is: '5px'}, |
+ {at: 0, is: '10px'}, |
+ {at: 0.3, is: '13px'}, |
+ {at: 0.6, is: '16px'}, |
+ {at: 1, is: '20px'}, |
+ {at: 1.5, is: '25px'}, |
+]); |
+ |
+assertNoInterpolation({ |
+ property: 'min-height', |
+ from: 'initial', |
+ to: '20px', |
+}); |
+ |
+assertInterpolation({ |
+ property: 'min-height', |
+ from: 'inherit', |
+ to: '20px', |
+}, [ |
+ {at: -0.5, is: '35px'}, |
+ {at: 0, is: '30px'}, |
+ {at: 0.3, is: '27px'}, |
+ {at: 0.6, is: '24px'}, |
+ {at: 1, is: '20px'}, |
+ {at: 1.5, is: '15px'}, |
+]); |
+ |
+assertNoInterpolation({ |
+ property: 'min-height', |
+ from: 'unset', |
+ to: '20px', |
+}); |
+ |
+ |
+assertInterpolation({ |
+ property: 'min-height', |
from: '0px', |
- to: '100px' |
+ to: '100px', |
}, [ |
{at: -0.5, is: '0'}, // CSS min-height can't be negative. |
{at: 0, is: '0'}, |