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

Unified Diff: third_party/WebKit/LayoutTests/animations/svg-attribute-composition/svg-y-composition.html

Issue 1587533002: Add composition support for SVG Web Animation of x, y, dx, dy attributes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review changes Created 4 years, 11 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
Index: third_party/WebKit/LayoutTests/animations/svg-attribute-composition/svg-y-composition.html
diff --git a/third_party/WebKit/LayoutTests/animations/svg-attribute-composition/svg-textLength-composition.html b/third_party/WebKit/LayoutTests/animations/svg-attribute-composition/svg-y-composition.html
similarity index 81%
copy from third_party/WebKit/LayoutTests/animations/svg-attribute-composition/svg-textLength-composition.html
copy to third_party/WebKit/LayoutTests/animations/svg-attribute-composition/svg-y-composition.html
index 456c54678717cdab220ec5f021b5832accd9930b..557f68e534dcb08aba398d344caf09648c8c5c1b 100644
--- a/third_party/WebKit/LayoutTests/animations/svg-attribute-composition/svg-textLength-composition.html
+++ b/third_party/WebKit/LayoutTests/animations/svg-attribute-composition/svg-y-composition.html
@@ -2,51 +2,54 @@
<html>
<body>
<template id="target-template">
-<svg width="90" height="90">
-<text class="target" />
-</svg>
+ <svg width="0" height="0">
+ <rect class="target"/>
+ </svg>
</template>
<script src="../svg-attribute-interpolation/resources/interpolation-test.js"></script>
<script>
'use strict';
+
assertAttributeInterpolation({
- property: 'textLength',
+ property: 'y',
underlying: '2',
from: '-1',
fromComposite: 'add',
to: '4',
toComposite: 'add'
}, [
- {at: -0.4, is: 0},
+ {at: -0.4, is: -1},
{at: 0, is: 1},
{at: 0.2, is: 2},
{at: 0.6, is: 4},
{at: 1, is: 6},
{at: 1.4, is: 8}
]);
+
assertAttributeInterpolation({
- property: 'textLength',
+ property: 'y',
underlying: '2',
from: '1',
fromComposite: 'replace',
to: '4',
toComposite: 'add'
}, [
- {at: -0.4, is: 0},
+ {at: -0.4, is: -1},
{at: 0, is: 1},
{at: 0.2, is: 2},
{at: 0.6, is: 4},
{at: 1, is: 6},
{at: 1.4, is: 8}
]);
+
assertAttributeInterpolation({
- property: 'textLength',
+ property: 'y',
underlying: '1',
from: neutralKeyframe,
to: '6',
toComposite: 'replace'
}, [
- {at: -0.4, is: 0},
+ {at: -0.4, is: -1},
{at: 0, is: 1},
{at: 0.2, is: 2},
{at: 0.6, is: 4},

Powered by Google App Engine
This is Rietveld 408576698