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

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

Issue 1418193007: Web Animations: Add SVGNumberOptionalNumberInterpolationType (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@_svgIntegerInterpolationType
Patch Set: neutralKeyframe 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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <template id="target-template">
5 <svg width="90" height="90">
6 <feMorphology class="target" />
7 </svg>
8 </template>
9 <script src="../svg-attribute-interpolation/resources/interpolation-test.js"></s cript>
10 <script>
11 'use strict';
12 assertAttributeInterpolation({
13 property: 'radius',
14 underlying: '0',
15 from: '1',
16 fromComposite: 'add',
17 to: '6 11',
18 toComposite: 'add',
19 }, [
20 {at: -0.4, is: '-1, -3'},
21 {at: 0, is: '1, 1'},
22 {at: 0.2, is: '2, 3'},
23 {at: 0.6, is: '4, 7'},
24 {at: 1, is: '6, 11'},
25 {at: 1.4, is: '8, 15'},
26 ]);
27
28 assertAttributeInterpolation({
29 property: 'radius',
30 underlying: '3',
31 from: '1',
32 fromComposite: 'add',
33 to: '6 11',
34 toComposite: 'add',
35 }, [
36 {at: -0.4, is: '2, 0'},
37 {at: 0, is: '4, 4'},
38 {at: 0.2, is: '5, 6'},
39 {at: 0.6, is: '7, 10'},
40 {at: 1, is: '9, 14'},
41 {at: 1.4, is: '11, 18'},
42 ]);
43
44 assertAttributeInterpolation({
45 property: 'radius',
46 underlying: '3',
47 from: '1',
48 fromComposite: 'replace',
49 to: '6 11',
50 toComposite: 'add',
51 }, [
52 {at: -0.4, is: '-2.2, -4.2'},
53 {at: 0, is: '1, 1'},
54 {at: 0.2, is: '2.6, 3.6'},
55 {at: 0.6, is: '5.8, 8.8'},
56 {at: 1, is: '9, 14'},
57 {at: 1.4, is: '12.2, 19.2'},
58 ]);
59
60 assertAttributeInterpolation({
61 property: 'radius',
62 underlying: '3',
63 from: neutralKeyframe,
64 to: '6 11',
65 toComposite: 'replace',
66 }, [
67 {at: -0.4, is: '1.8, -0.2'},
68 {at: 0, is: '3, 3'},
69 {at: 0.2, is: '3.6, 4.6'},
70 {at: 0.6, is: '4.8, 7.8'},
71 {at: 1, is: '6, 11'},
72 {at: 1.4, is: '7.2, 14.2'},
73 ]);
74
75 assertAttributeInterpolation({
76 property: 'radius',
77 underlying: '0',
78 from: '-2 10',
79 fromComposite: 'add',
80 to: '3 10',
81 toComposite: 'add',
82 }, [
83 {at: -0.4, is: '-4, 10'},
84 {at: 0, is: '-2, 10'},
85 {at: 0.2, is: '-1, 10'},
86 {at: 0.6, is: '1, 10'},
87 {at: 1, is: '3, 10'},
88 {at: 1.4, is: '5, 10'},
89 ]);
90
91 assertAttributeInterpolation({
92 property: 'radius',
93 underlying: '3',
94 from: '-2 10',
95 fromComposite: 'add',
96 to: '3 10',
97 toComposite: 'add',
98 }, [
99 {at: -0.4, is: '-1, 13'},
100 {at: 0, is: '1, 13'},
101 {at: 0.2, is: '2, 13'},
102 {at: 0.6, is: '4, 13'},
103 {at: 1, is: '6, 13'},
104 {at: 1.4, is: '8, 13'},
105 ]);
106
107 assertAttributeInterpolation({
108 property: 'radius',
109 underlying: '3',
110 from: '-2 10',
111 fromComposite: 'replace',
112 to: '3 10',
113 toComposite: 'add',
114 }, [
115 {at: -0.4, is: '-5.2, 8.8'},
116 {at: 0, is: '-2, 10'},
117 {at: 0.2, is: '-0.4, 10.6'},
118 {at: 0.6, is: '2.8, 11.8'},
119 {at: 1, is: '6, 13'},
120 {at: 1.4, is: '9.2, 14.2'},
121 ]);
122
123 assertAttributeInterpolation({
124 property: 'radius',
125 underlying: '3',
126 from: neutralKeyframe,
127 to: '3 10',
128 toComposite: 'replace',
129 }, [
130 {at: -0.4, is: '3, 0.2'},
131 {at: 0, is: '3, 3'},
132 {at: 0.2, is: '3, 4.4'},
133 {at: 0.6, is: '3, 7.2'},
134 {at: 1, is: '3, 10'},
135 {at: 1.4, is: '3, 12.8'},
136 ]);
137 </script>
138 </body>
139 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698