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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/composition/object-position-composition.html

Issue 1690543002: Add additive animation support for CSS properties perspective-origin and object-position (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@_backgroundPositionAnimation
Patch Set: Rebased Created 4 years, 9 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/LayoutTests/animations/composition/perspective-origin-composition.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 assertComposition({
6 property: 'object-position',
7 underlying: '40px 60px',
8 addFrom: '60px 40px',
9 addTo: '160px 140px',
10 }, [
11 {at: -0.25, is: '75px 75px'},
12 {at: 0, is: '100px 100px'},
13 {at: 0.25, is: '125px 125px'},
14 {at: 0.5, is: '150px 150px'},
15 {at: 0.75, is: '175px 175px'},
16 {at: 1, is: '200px 200px'},
17 {at: 1.25, is: '225px 225px'},
18 ]);
19
20 assertComposition({
21 property: 'object-position',
22 underlying: 'top 20% left 40%',
23 addFrom: 'left 60% top 80%',
24 addTo: 'right 80% bottom 40%',
25 }, [
26 {at: -0.25, is: '110% 105%'},
27 {at: 0, is: '100% 100%'},
28 {at: 0.25, is: '90% 95%'},
29 {at: 0.5, is: '80% 90%'},
30 {at: 0.75, is: '70% 85%'},
31 {at: 1, is: '60% 80%'},
32 {at: 1.25, is: '50% 75%'},
33 ]);
34
35 assertComposition({
36 property: 'object-position',
37 underlying: '40px 60px',
38 replaceFrom: '100px 200px',
39 addTo: '160px 40px',
40 }, [
41 {at: -0.25, is: '75px 225px'},
42 {at: 0, is: '100px 200px'},
43 {at: 0.25, is: '125px 175px'},
44 {at: 0.5, is: '150px 150px'},
45 {at: 0.75, is: '175px 125px'},
46 {at: 1, is: '200px 100px'},
47 {at: 1.25, is: '225px 75px'},
48 ]);
49
50 assertComposition({
51 property: 'object-position',
52 underlying: '40px 60px',
53 addFrom: '60px 140px',
54 replaceTo: '200px 100px',
55 }, [
56 {at: -0.25, is: '75px 225px'},
57 {at: 0, is: '100px 200px'},
58 {at: 0.25, is: '125px 175px'},
59 {at: 0.5, is: '150px 150px'},
60 {at: 0.75, is: '175px 125px'},
61 {at: 1, is: '200px 100px'},
62 {at: 1.25, is: '225px 75px'},
63 ]);</script>
64 </body>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/animations/composition/perspective-origin-composition.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698