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

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

Issue 1431593004: Web Animations: Migrate SVG Rect interpolation to interpolation types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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="90" height="90">
6 <defs>
7 <marker class="target" />
8 </defs>
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: 'viewBox',
16 underlying: '3',
alancutter (OOO until 2018) 2015/11/03 04:41:44 These underlying values look like they won't parse
nainar 2015/11/03 06:37:47 Done.
17 from: '-10, 20, 80, 90',
18 fromComposite: 'add',
19 to: '-20, 30, 70, 80'
20 toComposite: 'add'
21 }, [
22 {at: -0.4, is: '-6, 16, 84, 94'},
23 {at: 0, is: '-10, 20, 80, 90'},
24 {at: 0.2, is: '-12, 22, 78, 88'},
25 {at: 0.6, is: '-16, 26, 74, 84'},
26 {at: 1, is: '-20, 30, 70, 80'},
27 {at: 1.4, is: '-24, 34, 66, 76'}
28 ]);
29
30 assertAttributeInterpolation({
31 property: 'viewBox',
32 underlying: '5',
33 from: '-10, 20, 80, 90',
34 fromComposite: 'add',
35 to: '-20, 30, 70, 80'
36 toComposite: 'replace'
37 }, [
38 {at: -0.4, is: '-6, 16, 84, 94'},
39 {at: 0, is: '-10, 20, 80, 90'},
40 {at: 0.2, is: '-12, 22, 78, 88'},
41 {at: 0.6, is: '-16, 26, 74, 84'},
42 {at: 1, is: '-20, 30, 70, 80'},
43 {at: 1.4, is: '-24, 34, 66, 76'}
44 ]);
45
46 assertAttributeInterpolation({
47 property: 'viewBox',
48 underlying: '5',
49 from: '-10, 20, 80, 90',
50 fromComposite: 'replace',
51 to: '-20, 30, 70, 80'
52 toComposite: 'add',
53 }, [
54 {at: -0.4, is: '-6, 16, 84, 94'},
55 {at: 0, is: '-10, 20, 80, 90'},
56 {at: 0.2, is: '-12, 22, 78, 88'},
57 {at: 0.6, is: '-16, 26, 74, 84'},
58 {at: 1, is: '-20, 30, 70, 80'},
59 {at: 1.4, is: '-24, 34, 66, 76'}
60 ]);
61
62 </script>
63 </body>
64 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698