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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/svg-attribute-composition/svg-elevation-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 <feDistantLight 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: 'elevation',
14 underlying: '3',
15 from: '1',
16 fromComposite: 'add',
17 to: '6',
18 toComposite: 'add',
19 }, [
20 {at: -0.4, is: 2},
21 {at: 0, is: 4},
22 {at: 0.2, is: 5},
23 {at: 0.6, is: 7},
24 {at: 1, is: 9},
25 {at: 1.4, is: 11},
26 ]);
27
28 assertAttributeInterpolation({
29 property: 'elevation',
30 underlying: '5',
31 from: '1',
32 fromComposite: 'replace',
33 to: '6',
34 toComposite: 'add',
35 }, [
36 {at: -0.4, is: -3},
37 {at: 0, is: 1},
38 {at: 0.2, is: 3},
39 {at: 0.6, is: 7},
40 {at: 1, is: 11},
41 {at: 1.4, is: 15},
42 ]);
43
44 assertAttributeInterpolation({
45 property: 'elevation',
46 underlying: '5',
47 from: '',
48 fromComposite: 'add',
49 to: '10',
50 toComposite: 'replace',
51 }, [
52 {at: -0.4, is: 3},
53 {at: 0, is: 5},
54 {at: 0.2, is: 6},
55 {at: 0.6, is: 8},
56 {at: 1, is: 10},
57 {at: 1.4, is: 12},
58 ]);
59 </script>
60 </body>
61 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698