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

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

Powered by Google App Engine
This is Rietveld 408576698