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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/composition/perspective-origin-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: Remove from StringKeyframe 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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <body>
3 <script src="../interpolation/resources/interpolation-test.js"></script>
4 <script>
5 assertComposition({
6 property: 'perspective-origin',
7 underlying: '40px 40px',
8 addFrom: '60px 60px',
9 addTo: '160px 160px',
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: 'perspective-origin',
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: 'perspective-origin',
37 underlying: '40px 40px',
38 replaceFrom: '100px 100px',
39 addTo: '160px 160px',
40 }, [
41 {at: -0.25, is: '75px 75px'},
42 {at: 0, is: '100px 100px'},
43 {at: 0.25, is: '125px 125px'},
44 {at: 0.5, is: '150px 150px'},
45 {at: 0.75, is: '175px 175px'},
46 {at: 1, is: '200px 200px'},
47 {at: 1.25, is: '225px 225px'},
48 ]);
49
50 assertComposition({
51 property: 'perspective-origin',
52 underlying: '40px 40px',
53 addFrom: '60px 60px',
54 replaceTo: '200px 200px',
Eric Willigers 2016/02/10 10:12:56 Can we have x != y for a replaceTo test.
alancutter (OOO until 2018) 2016/02/11 01:22:26 Done.
55 }, [
56 {at: -0.25, is: '75px 75px'},
57 {at: 0, is: '100px 100px'},
58 {at: 0.25, is: '125px 125px'},
59 {at: 0.5, is: '150px 150px'},
60 {at: 0.75, is: '175px 175px'},
61 {at: 1, is: '200px 200px'},
62 {at: 1.25, is: '225px 225px'},
63 ]);
64 </script>
65 </body>
66
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698