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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/composition/transform-origin-composition.html

Issue 1682083004: Add additive animation support for CSS property transform-origin (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@_radiusInterpolationType
Patch Set: Rebased Created 4 years, 10 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/animation/CSSTransformOriginInterpolationType.h » ('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 <style>
3 .target {
4 width: 200px;
5 height: 200px;
6 }
7 </style>
8 <body>
9 <script src="../interpolation/resources/interpolation-test.js"></script>
10 <script>
11 assertComposition({
12 property: 'transform-origin',
13 underlying: '40px 60px',
14 addFrom: '60px 40px',
15 addTo: '160px 140px 40px',
16 }, [
17 {at: -0.25, is: '75px 75px -10px'},
18 {at: 0, is: '100px 100px'},
19 {at: 0.25, is: '125px 125px 10px'},
20 {at: 0.5, is: '150px 150px 20px'},
21 {at: 0.75, is: '175px 175px 30px'},
22 {at: 1, is: '200px 200px 40px'},
23 {at: 1.25, is: '225px 225px 50px'},
24 ]);
25
26 assertComposition({
27 property: 'transform-origin',
28 underlying: 'top right 20px',
29 addFrom: 'left top 80px',
30 addTo: 'right bottom 20px',
31 }, [
32 {at: -0.25, is: '150px -50px 115px'},
33 {at: 0, is: '200px 0px 100px'},
34 {at: 0.25, is: '250px 50px 85px'},
35 {at: 0.5, is: '300px 100px 70px'},
36 {at: 0.75, is: '350px 150px 55px'},
37 {at: 1, is: '400px 200px 40px'},
38 {at: 1.25, is: '450px 250px 25px'},
39 ]);
40
41 assertComposition({
42 property: 'transform-origin',
43 underlying: '40px 60px 100px',
44 replaceFrom: '100px 200px 20px',
45 addTo: '160px 40px',
46 }, [
47 {at: -0.25, is: '75px 225px'},
48 {at: 0, is: '100px 200px 20px'},
49 {at: 0.25, is: '125px 175px 40px'},
50 {at: 0.5, is: '150px 150px 60px'},
51 {at: 0.75, is: '175px 125px 80px'},
52 {at: 1, is: '200px 100px 100px'},
53 {at: 1.25, is: '225px 75px 120px'},
54 ]);
55
56 assertComposition({
57 property: 'transform-origin',
58 underlying: '40px 60px 80px',
59 addFrom: '60px 140px 20px',
60 replaceTo: '200px 100px',
61 }, [
62 {at: -0.25, is: '75px 225px 125px'},
63 {at: 0, is: '100px 200px 100px'},
64 {at: 0.25, is: '125px 175px 75px'},
65 {at: 0.5, is: '150px 150px 50px'},
66 {at: 0.75, is: '175px 125px 25px'},
67 {at: 1, is: '200px 100px'},
68 {at: 1.25, is: '225px 75px -25px'},
69 ]);
70 </script>
71 </body>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/animation/CSSTransformOriginInterpolationType.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698