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

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

Issue 1419733009: Web Animations: Add SVGNumberListInterpolationType (Closed) Base URL: ssh://pony.syd/usr/local/google/home/alancutter/repos/chromium/src@_svgRectInterpolationType
Patch Set: Fix responsive test derp 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 <feColorMatrix type="matrix" 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: 'values',
18 underlying: '10, 20',
19 from: '30, 40',
20 fromComposite: 'add',
21 to: '50, -10',
22 toComposite: 'add',
23 }, [
24 {at: -0.4, is: '32, 80'},
25 {at: 0, is: '40, 60'},
26 {at: 0.2, is: '44, 50'},
27 {at: 0.6, is: '52, 30'},
28 {at: 1, is: '60, 10'},
29 {at: 1.4, is: '68, -10'},
30 ]);
31
32 assertAttributeInterpolation({
33 property: 'values',
34 underlying: '10, 20',
35 from: '30',
36 fromComposite: 'add',
37 to: '50',
38 toComposite: 'add',
39 }, [
40 {at: -0.4, is: '32, 20'},
41 {at: 0, is: '40, 20'},
42 {at: 0.2, is: '44, 20'},
43 {at: 0.6, is: '52, 20'},
44 {at: 1, is: '60, 20'},
45 {at: 1.4, is: '68, 20'},
46 ]);
47
48 assertAttributeInterpolation({
49 property: 'values',
50 underlying: '10',
51 from: '20, 30, 40',
52 fromComposite: 'add',
53 to: '50, 40, 30',
54 toComposite: 'add',
55 }, [
56 {at: -0.4, is: '18, 26, 44'},
57 {at: 0, is: '30, 30, 40'},
58 {at: 0.2, is: '36, 32, 38'},
59 {at: 0.6, is: '48, 36, 34'},
60 {at: 1, is: '60, 40, 30'},
61 {at: 1.4, is: '72, 44, 26'},
62 ]);
63
64 assertAttributeInterpolation({
65 property: 'values',
66 underlying: '10',
67 from: '30, 40',
68 fromComposite: 'add',
69 to: '50, 60, 70',
70 toComposite: 'replace',
71 }, [
72 {at: -0.4, is: '40, 40'},
73 {at: 0, is: '40, 40'},
74 {at: 0.2, is: '40, 40'},
75 {at: 0.6, is: '50, 60, 70'},
76 {at: 1, is: '50, 60, 70'},
77 {at: 1.4, is: '50, 60, 70'},
78 ]);
79
80 assertAttributeInterpolation({
81 property: 'values',
82 underlying: '10',
83 from: neutralKeyframe,
84 to: '50, -10',
85 toComposite: 'replace',
86 }, [
87 {at: -0.4, is: '10'},
88 {at: 0, is: '10'},
89 {at: 0.2, is: '10'},
90 {at: 0.6, is: '50, -10'},
91 {at: 1, is: '50, -10'},
92 {at: 1.4, is: '50, -10'},
93 ]);
94
95 assertAttributeInterpolation({
96 property: 'values',
97 underlying: '10, 20',
98 from: neutralKeyframe,
99 to: '50, -10',
100 toComposite: 'add',
101 }, [
102 {at: -0.4, is: '-10, 24'},
103 {at: 0, is: '10, 20'},
104 {at: 0.2, is: '20, 18'},
105 {at: 0.6, is: '40, 14'},
106 {at: 1, is: '60, 10'},
107 {at: 1.4, is: '80, 6'},
108 ]);
109 </script>
110 </body>
111 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698