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

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

Issue 1587533002: Add composition support for SVG Web Animation of x, y, dx, dy attributes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review changes Created 4 years, 11 months 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <body> 3 <body>
4 <template id="target-template"> 4 <template id="target-template">
5 <svg width="90" height="90"> 5 <svg width="0" height="0">
6 <!-- In text positioning elements, x is a list. 6 <rect class="target"/>
7 See svg-y-interpolation.html for an example. --> 7 </svg>
8 <rect class="target" x="10" y="10" width="20" height="20" />
9 </svg>
10 </template> 8 </template>
11 <script src="../svg-attribute-interpolation/resources/interpolation-test.js"></s cript> 9 <script src="../svg-attribute-interpolation/resources/interpolation-test.js"></s cript>
12 <script> 10 <script>
13 'use strict'; 11 'use strict';
12
14 assertAttributeInterpolation({ 13 assertAttributeInterpolation({
15 property: 'x', 14 property: 'x',
16 underlying: '2', 15 underlying: '2',
17 from: '-1', 16 from: '-1',
18 fromComposite: 'add', 17 fromComposite: 'add',
19 to: '4', 18 to: '4',
20 toComposite: 'add' 19 toComposite: 'add'
21 }, [ 20 }, [
22 {at: -0.4, is: -1}, 21 {at: -0.4, is: -1},
23 {at: 0, is: 1}, 22 {at: 0, is: 1},
24 {at: 0.2, is: 2}, 23 {at: 0.2, is: 2},
25 {at: 0.6, is: 4}, 24 {at: 0.6, is: 4},
26 {at: 1, is: 6}, 25 {at: 1, is: 6},
27 {at: 1.4, is: 8} 26 {at: 1.4, is: 8}
28 ]); 27 ]);
28
29 assertAttributeInterpolation({ 29 assertAttributeInterpolation({
30 property: 'x', 30 property: 'x',
31 underlying: '2', 31 underlying: '2',
32 from: '1', 32 from: '1',
33 fromComposite: 'replace', 33 fromComposite: 'replace',
34 to: '4', 34 to: '4',
35 toComposite: 'add' 35 toComposite: 'add'
36 }, [ 36 }, [
37 {at: -0.4, is: -1}, 37 {at: -0.4, is: -1},
38 {at: 0, is: 1}, 38 {at: 0, is: 1},
39 {at: 0.2, is: 2}, 39 {at: 0.2, is: 2},
40 {at: 0.6, is: 4}, 40 {at: 0.6, is: 4},
41 {at: 1, is: 6}, 41 {at: 1, is: 6},
42 {at: 1.4, is: 8} 42 {at: 1.4, is: 8}
43 ]); 43 ]);
44
44 assertAttributeInterpolation({ 45 assertAttributeInterpolation({
45 property: 'x', 46 property: 'x',
46 underlying: '1', 47 underlying: '1',
47 from: neutralKeyframe, 48 from: neutralKeyframe,
48 to: '6', 49 to: '6',
49 toComposite: 'replace' 50 toComposite: 'replace'
50 }, [ 51 }, [
51 {at: -0.4, is: -1}, 52 {at: -0.4, is: -1},
52 {at: 0, is: 1}, 53 {at: 0, is: 1},
53 {at: 0.2, is: 2}, 54 {at: 0.2, is: 2},
54 {at: 0.6, is: 4}, 55 {at: 0.6, is: 4},
55 {at: 1, is: 6}, 56 {at: 1, is: 6},
56 {at: 1.4, is: 8} 57 {at: 1.4, is: 8}
57 ]); 58 ]);
58 </script> 59 </script>
59 </body> 60 </body>
60 </html> 61 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698