Index: LayoutTests/animations/interpolation/svg-cx-interpolation.html |
diff --git a/LayoutTests/animations/interpolation/svg-stroke-dashoffset-interpolation.html b/LayoutTests/animations/interpolation/svg-cx-interpolation.html |
similarity index 74% |
copy from LayoutTests/animations/interpolation/svg-stroke-dashoffset-interpolation.html |
copy to LayoutTests/animations/interpolation/svg-cx-interpolation.html |
index 7e4dbbbe1c2f8597b0f8a7b35857518cce06b258..d670cf314d75dd82e3d9a538dd78cd167b3b0499 100644 |
--- a/LayoutTests/animations/interpolation/svg-stroke-dashoffset-interpolation.html |
+++ b/LayoutTests/animations/interpolation/svg-cx-interpolation.html |
@@ -2,11 +2,10 @@ |
<meta charset="UTF-8"> |
<style> |
svg { |
- stroke-dashoffset: 100px; |
+ cx: 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: 'cx', |
from: '-10px', |
to: '10px' |
}, [ |
@@ -35,7 +34,7 @@ assertInterpolation({ |
{at: 1.25, is: '15px'}, |
]); |
assertInterpolation({ |
- property: 'stroke-dashoffset', |
+ property: 'cx', |
from: '-20px', |
to: '30em' |
}, [ |
@@ -48,7 +47,7 @@ assertInterpolation({ |
{at: 1.25, is: '605px'}, |
]); |
assertInterpolation({ |
- property: 'stroke-dashoffset', |
+ property: 'cx', |
from: 'inherit', |
to: '140px' |
}, [ |
@@ -60,5 +59,18 @@ assertInterpolation({ |
{at: 1, is: '140px'}, |
{at: 1.25, is: '150px'}, |
]); |
+assertInterpolation({ |
+ property: 'cx', |
+ 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> |