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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/svg-attribute-composition/svg-d-composition.html

Issue 1441853002: Web Animations: Add SVGPathInterpolationType (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@_svgNumberListInterpolationType
Patch Set: Rebased Created 5 years 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/animations/svg-attribute-composition/svg-d-composition-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <body>
3 <template id="target-template">
4 <svg width="90" height="90">
5 <path class="target" />
6 </svg>
7 </template>
8 <script src="../svg-attribute-interpolation/resources/interpolation-test.js"></s cript>
9 <script>
10 'use strict';
11
12 // SVG Paths always replace.
13
14 assertAttributeInterpolation({
15 property: 'd',
16 underlying: 'M 10 10 H 20',
17 from: 'M 20 30 L 40 50',
18 fromComposite: 'add',
19 to: 'M 30 40 L 50 60',
20 toComposite: 'add',
21 }, [
22 {at: -0.4, is: 'M 16 26 L 36 46'},
23 {at: 0, is: 'M 20 30 L 40 50'},
24 {at: 0.2, is: 'M 22 32 L 42 52'},
25 {at: 0.6, is: 'M 26 36 L 46 56'},
26 {at: 1, is: 'M 30 40 L 50 60'},
27 {at: 1.4, is: 'M 34 44 L 54 64'},
28 ]);
29
30 assertAttributeInterpolation({
31 property: 'd',
32 underlying: 'M 10 10 H 20',
33 from: 'M 20 30 L 40 50',
34 fromComposite: 'add',
35 to: 'M 30 40 H 50',
36 toComposite: 'add',
37 }, [
38 {at: -0.4, is: 'M 20 30 L 40 50'},
39 {at: 0, is: 'M 20 30 L 40 50'},
40 {at: 0.2, is: 'M 20 30 L 40 50'},
41 {at: 0.6, is: 'M 30 40 H 50'},
42 {at: 1, is: 'M 30 40 H 50'},
43 {at: 1.4, is: 'M 30 40 H 50'},
44 ]);
45
46 assertAttributeInterpolation({
47 property: 'd',
48 underlying: 'M 10 10 H 20',
49 from: 'm 20 30 L 40 50',
50 fromComposite: 'add',
51 to: 'm 30 40 L 50 60',
52 toComposite: 'replace',
53 }, [
54 {at: -0.4, is: 'm 16 26 L 36 46'},
55 {at: 0, is: 'm 20 30 L 40 50'},
56 {at: 0.2, is: 'm 22 32 L 42 52'},
57 {at: 0.6, is: 'm 26 36 L 46 56'},
58 {at: 1, is: 'm 30 40 L 50 60'},
59 {at: 1.4, is: 'm 34 44 L 54 64'},
60 ]);
61
62 assertAttributeInterpolation({
63 property: 'd',
64 underlying: 'M 10 10 L 20 20',
65 from: neutralKeyframe,
66 to: 'm 30 40 l 50 60',
67 toComposite: 'replace',
68 }, [
69 {at: -0.4, is: 'm 2 -2 l -6 -10'},
70 {at: 0, is: 'M 10 10 L 20 20'},
71 {at: 0.2, is: 'm 14 16 l 18 20'},
72 {at: 0.6, is: 'm 22 28 l 34 40'},
73 {at: 1, is: 'm 30 40 l 50 60'},
74 {at: 1.4, is: 'm 38 52 l 66 80'},
75 ]);
76
77 assertAttributeInterpolation({
78 property: 'd',
79 underlying: 'M 10 10 L 20 20',
80 from: neutralKeyframe,
81 to: 'm 30 40 l 50 60',
82 toComposite: 'add',
83 }, [
84 {at: -0.4, is: 'm 2 -2 l -6 -10'},
85 {at: 0, is: 'M 10 10 L 20 20'},
86 {at: 0.2, is: 'm 14 16 l 18 20'},
87 {at: 0.6, is: 'm 22 28 l 34 40'},
88 {at: 1, is: 'm 30 40 l 50 60'},
89 {at: 1.4, is: 'm 38 52 l 66 80'},
90 ]);
91
92 assertAttributeInterpolation({
93 property: 'd',
94 underlying: 'm 30 40 l 50 60',
95 from: 'M 10 10 L 20 20',
96 fromComposite: 'add',
97 to: neutralKeyframe,
98 }, [
99 {at: -0.4, is: 'm 2 -2 l -6 -10'},
100 {at: 0, is: 'M 10 10 L 20 20'},
101 {at: 0.2, is: 'm 14 16 l 18 20'},
102 {at: 0.6, is: 'm 22 28 l 34 40'},
103 {at: 1, is: 'm 30 40 l 50 60'},
104 {at: 1.4, is: 'm 38 52 l 66 80'},
105 ]);
106 </script>
107 </body>
108 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/animations/svg-attribute-composition/svg-d-composition-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698