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

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

Issue 1410643011: Web Animations: Add SVGNumberInterpolationType (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@_propertyHandleFilter
Patch Set: Created 5 years, 1 month 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="0" height="0">
6 <feComponentTransfer>
7 <feFuncR type="linear" class="target" />
8 </feComponentTransfer>
9 </svg>
10 </template>
11 <script src="../svg-attribute-interpolation/resources/interpolation-test.js"></s cript>
12 <script>
13 'use strict';
14 assertAttributeInterpolation({
15 property: 'slope',
16 underlying: '3',
17 from: '1',
18 fromComposite: 'add',
19 to: '6',
20 toComposite: 'add',
21 }, [
22 {at: -0.4, is: 2},
23 {at: 0, is: 4},
24 {at: 0.2, is: 5},
25 {at: 0.6, is: 7},
26 {at: 1, is: 9},
27 {at: 1.4, is: 11},
28 ]);
29
30 assertAttributeInterpolation({
31 property: 'slope',
32 underlying: '5',
33 from: '1',
34 fromComposite: 'replace',
35 to: '6',
36 toComposite: 'add',
37 }, [
38 {at: -0.4, is: -3},
39 {at: 0, is: 1},
40 {at: 0.2, is: 3},
41 {at: 0.6, is: 7},
42 {at: 1, is: 11},
43 {at: 1.4, is: 15},
44 ]);
45
46 assertAttributeInterpolation({
47 property: 'slope',
48 underlying: '5',
49 from: '',
50 fromComposite: 'add',
51 to: '10',
52 toComposite: 'replace',
53 }, [
54 {at: -0.4, is: 3},
55 {at: 0, is: 5},
56 {at: 0.2, is: 6},
57 {at: 0.6, is: 8},
58 {at: 1, is: 10},
59 {at: 1.4, is: 12},
60 ]);
61 </script>
62 </body>
63 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698