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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/composition/offset-rotate-composition.html

Issue 2555543002: CSS Motion Path: Support offset-rotate in addition to offset-rotation (Closed)
Patch Set: reformat Created 4 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/animations/interpolation/offset-rotate-interpolation.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <body>
3 <script src="../interpolation/resources/interpolation-test.js"></script>
4 <script>
5 // Angle rotations compose.
6 assertComposition({
7 property: 'offset-rotate',
8 underlying: '20deg',
9 addFrom: '10deg',
10 addTo: '20deg',
11 }, [
12 {at: -0.3, is: '27deg'},
13 {at: 0, is: '30deg'},
14 {at: 0.3, is: '33deg'},
15 {at: 0.6, is: '36deg'},
16 {at: 1, is: '40deg'},
17 {at: 1.5, is: '45deg'},
18 ]);
19
20 // Angle rotations don't compose with underlying 'auto'.
21 assertComposition({
22 property: 'offset-rotate',
23 underlying: 'auto 20deg',
24 addFrom: '10deg',
25 addTo: '20deg',
26 }, [
27 {at: -0.3, is: '7deg'},
28 {at: 0, is: '10deg'},
29 {at: 0.3, is: '13deg'},
30 {at: 0.6, is: '16deg'},
31 {at: 1, is: '20deg'},
32 {at: 1.5, is: '25deg'},
33 ]);
34
35 // Auto rotations compose with underlying 'auto'.
36 assertComposition({
37 property: 'offset-rotate',
38 underlying: 'auto 20deg',
39 addFrom: 'reverse 10deg',
40 addTo: 'auto 20deg',
41 }, [
42 {at: -0.3, is: 'auto 261deg'},
43 {at: 0, is: 'auto 210deg'},
44 {at: 0.3, is: 'auto 159deg'},
45 {at: 0.6, is: 'auto 108deg'},
46 {at: 1, is: 'auto 40deg'},
47 {at: 1.5, is: 'auto -45deg'},
48 ]);
49
50 // When we can't interpolate, we can't compose.
51 assertComposition({
52 property: 'offset-rotate',
53 underlying: '20deg',
54 addFrom: 'reverse 10deg',
55 addTo: '20deg',
56 }, [
57 {at: -0.3, is: 'auto 190deg'},
58 {at: 0, is: 'auto 190deg'},
59 {at: 0.3, is: 'auto 190deg'},
60 {at: 0.6, is: '40deg'},
61 {at: 1, is: '40deg'},
62 {at: 1.5, is: '40deg'},
63 ]);
64
65 assertComposition({
66 property: 'offset-rotate',
67 underlying: '20deg',
68 replaceFrom: 'reverse 10deg',
69 addTo: '20deg',
70 }, [
71 {at: -0.3, is: 'auto 190deg'},
72 {at: 0, is: 'auto 190deg'},
73 {at: 0.3, is: 'auto 190deg'},
74 {at: 0.6, is: '40deg'},
75 {at: 1, is: '40deg'},
76 {at: 1.5, is: '40deg'},
77 ]);
78
79 // Angle rotations compose with underlying angle.
80 assertComposition({
81 property: 'offset-rotate',
82 underlying: '20deg',
83 addFrom: '10deg',
84 replaceTo: '10deg',
85 }, [
86 {at: -0.3, is: '36deg'},
87 {at: 0, is: '30deg'},
88 {at: 0.3, is: '24deg'},
89 {at: 0.6, is: '18deg'},
90 {at: 1, is: '10deg'},
91 {at: 1.5, is: '0deg'},
92 ]);
93 </script>
94 </body>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/animations/interpolation/offset-rotate-interpolation.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698