Index: LayoutTests/animations/interpolation/svg-cy-interpolation.html |
diff --git a/LayoutTests/animations/interpolation/svg-stroke-dashoffset-interpolation.html b/LayoutTests/animations/interpolation/svg-cy-interpolation.html |
similarity index 74% |
copy from LayoutTests/animations/interpolation/svg-stroke-dashoffset-interpolation.html |
copy to LayoutTests/animations/interpolation/svg-cy-interpolation.html |
index 7e4dbbbe1c2f8597b0f8a7b35857518cce06b258..2fe6575b61e9627310dd06976ffc0866cafb4916 100644 |
--- a/LayoutTests/animations/interpolation/svg-stroke-dashoffset-interpolation.html |
+++ b/LayoutTests/animations/interpolation/svg-cy-interpolation.html |
@@ -2,11 +2,10 @@ |
<meta charset="UTF-8"> |
<style> |
svg { |
- stroke-dashoffset: 100px; |
+ cy: 100px; |
} |
.target { |
stroke: black; |
- stroke-width: 10px; |
font-size: 16px; |
} |
.replica { |
@@ -16,13 +15,13 @@ svg { |
<body> |
<template id="target-template"> |
<svg height="200" width="10"> |
- <path d="M5,0 l0,200" stroke-dasharray="15,15" class="target"> |
+ <circle cx="50%" cy="50%" r="25%" class="target"> |
</svg> |
</template> |
<script src="resources/interpolation-test.js"></script> |
<script> |
assertInterpolation({ |
- property: 'stroke-dashoffset', |
+ property: 'cy', |
from: '-10px', |
to: '10px' |
}, [ |
@@ -35,7 +34,7 @@ assertInterpolation({ |
{at: 1.25, is: '15px'}, |
]); |
assertInterpolation({ |
- property: 'stroke-dashoffset', |
+ property: 'cy', |
from: '-20px', |
to: '30em' |
}, [ |
@@ -48,7 +47,7 @@ assertInterpolation({ |
{at: 1.25, is: '605px'}, |
]); |
assertInterpolation({ |
- property: 'stroke-dashoffset', |
+ property: 'cy', |
from: 'inherit', |
to: '140px' |
}, [ |
@@ -60,5 +59,18 @@ assertInterpolation({ |
{at: 1, is: '140px'}, |
{at: 1.25, is: '150px'}, |
]); |
+assertInterpolation({ |
+ property: 'cy', |
+ from: '-10', |
+ to: '10' |
+}, [ |
+ {at: -0.25, is: '-15'}, |
+ {at: 0, is: '-10'}, |
+ {at: 0.25, is: '-5'}, |
+ {at: 0.5, is: '0'}, |
+ {at: 0.75, is: '5'}, |
+ {at: 1, is: '10'}, |
+ {at: 1.25, is: '15'}, |
+]); |
</script> |
</body> |