Index: LayoutTests/animations/interpolation/text-indent-interpolation.html |
diff --git a/LayoutTests/animations/interpolation/text-indent-interpolation.html b/LayoutTests/animations/interpolation/text-indent-interpolation.html |
index d6402f14087e2c7a37d04a964dae0f62b921ff96..fec11a053d181c4f5341fe4072fa94a610aace27 100644 |
--- a/LayoutTests/animations/interpolation/text-indent-interpolation.html |
+++ b/LayoutTests/animations/interpolation/text-indent-interpolation.html |
@@ -1,19 +1,76 @@ |
<!DOCTYPE html> |
<meta charset="UTF-8"> |
<style> |
+.parent { |
+ text-indent: 70px; |
+} |
.target { |
- font: 50px sans-serif; |
+ font: 10px sans-serif; |
+ text-indent: 10px; |
+ margin-left: 20px; |
} |
.expected { |
color: green; |
} |
</style> |
<body> |
-<template id="target-template">The helipad</template> |
<script src="resources/interpolation-test.js"></script> |
+<template id="target-template">T</template> |
<script> |
assertInterpolation({ |
property: 'text-indent', |
+ from: '', |
+ to: '40px', |
+}, [ |
+ {at: -0.3, is: '1px'}, |
+ {at: 0, is: '10px'}, |
+ {at: 0.3, is: '19px'}, |
+ {at: 0.6, is: '28px'}, |
+ {at: 1, is: '40px'}, |
+ {at: 1.5, is: '55px'}, |
+]); |
+ |
+assertInterpolation({ |
+ property: 'text-indent', |
+ from: 'initial', |
+ to: '20px', |
+}, [ |
+ {at: -0.3, is: '-6px'}, |
+ {at: 0, is: '0px'}, |
+ {at: 0.3, is: '6px'}, |
+ {at: 0.6, is: '12px'}, |
+ {at: 1, is: '20px'}, |
+ {at: 1.5, is: '30px'}, |
+]); |
+ |
+assertInterpolation({ |
+ property: 'text-indent', |
+ from: 'inherit', |
+ to: '20px', |
+}, [ |
+ {at: -0.3, is: '85px'}, |
+ {at: 0, is: '70px'}, |
+ {at: 0.3, is: '55px'}, |
+ {at: 0.6, is: '40px'}, |
+ {at: 1, is: '20px'}, |
+ {at: 1.5, is: '-5px'}, |
+]); |
+ |
+assertInterpolation({ |
+ property: 'text-indent', |
+ from: 'unset', |
+ to: '20px', |
+}, [ |
+ {at: -0.3, is: '85px'}, |
+ {at: 0, is: '70px'}, |
+ {at: 0.3, is: '55px'}, |
+ {at: 0.6, is: '40px'}, |
+ {at: 1, is: '20px'}, |
+ {at: 1.5, is: '-5px'}, |
+]); |
+ |
+assertInterpolation({ |
+ property: 'text-indent', |
from: '0px', |
to: '50px' |
}, [ |