Index: LayoutTests/animations/interpolation/perspective-origin-interpolation.html |
diff --git a/LayoutTests/animations/interpolation/perspective-origin-interpolation.html b/LayoutTests/animations/interpolation/perspective-origin-interpolation.html |
index 7918e207d89e8cff95d0d4b23378bad9f8851e36..d2a10dec3fc4b2f368ad0dc59ad3a04b19c14ba5 100644 |
--- a/LayoutTests/animations/interpolation/perspective-origin-interpolation.html |
+++ b/LayoutTests/animations/interpolation/perspective-origin-interpolation.html |
@@ -1,12 +1,16 @@ |
<!DOCTYPE html> |
<meta charset="UTF-8"> |
<style> |
+.parent { |
+ perspective-origin: 30px 10px; |
+} |
.target { |
display: inline-block; |
-webkit-perspective: 50; |
perspective: 50; |
margin-top: 50px; |
margin-bottom: 25px; |
+ perspective-origin: 10px 30px; |
} |
.transformed { |
width: 50px; |
@@ -31,6 +35,58 @@ |
<script> |
assertInterpolation({ |
property: 'perspective-origin', |
+ from: '', |
+ to: '20px 20px', |
+}, [ |
+ {at: -0.3, is: '7px 33px'}, |
+ {at: 0, is: '10px 30px'}, |
+ {at: 0.3, is: '13px 27px'}, |
+ {at: 0.6, is: '16px 24px'}, |
+ {at: 1, is: '20px 20px'}, |
+ {at: 1.5, is: '25px 15px'}, |
+]); |
+ |
+assertInterpolation({ |
+ property: 'perspective-origin', |
+ from: 'initial', |
+ to: '20px 20px', |
+}, [ |
+ {at: -0.3, is: '26.5px 26.5px'}, |
+ {at: 0, is: '25px 25px'}, |
+ {at: 0.3, is: '23.5px 23.5px'}, |
+ {at: 0.6, is: '22px 22px'}, |
+ {at: 1, is: '20px 20px'}, |
+ {at: 1.5, is: '17.5px 17.5px'}, |
+]); |
+ |
+assertInterpolation({ |
+ property: 'perspective-origin', |
+ from: 'inherit', |
+ to: '20px 20px', |
+}, [ |
+ {at: -0.3, is: '33px 7px'}, |
+ {at: 0, is: '30px 10px'}, |
+ {at: 0.3, is: '27px 13px'}, |
+ {at: 0.6, is: '24px 16px'}, |
+ {at: 1, is: '20px 20px'}, |
+ {at: 1.5, is: '15px 25px'}, |
+]); |
+ |
+assertInterpolation({ |
+ property: 'perspective-origin', |
+ from: 'unset', |
+ to: '20px 20px', |
+}, [ |
+ {at: -0.3, is: '26.5px 26.5px'}, |
+ {at: 0, is: '25px 25px'}, |
+ {at: 0.3, is: '23.5px 23.5px'}, |
+ {at: 0.6, is: '22px 22px'}, |
+ {at: 1, is: '20px 20px'}, |
+ {at: 1.5, is: '17.5px 17.5px'}, |
+]); |
+ |
+assertInterpolation({ |
+ property: 'perspective-origin', |
from: '0% 50%', |
to: '100% 150%' |
}, [ |