Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Unified Diff: LayoutTests/animations/interpolation/svg-cx-interpolation.html

Issue 991533003: Handle more <length> properties in animation (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: stroke-dashoffset setter exists + fixups + add tests Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/animations/interpolation/svg-cx-interpolation-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | LayoutTests/animations/interpolation/svg-cx-interpolation-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698