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

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

Issue 2364503002: CSS Motion Path: animate offset-anchor and offset-position (Closed)
Patch Set: alphabetical Created 4 years, 2 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <style>
3 .target {
4 width: 200px;
5 height: 200px;
6 }
7 </style>
2 <body> 8 <body>
3 <script src="../interpolation/resources/interpolation-test.js"></script> 9 <script src="../interpolation/resources/interpolation-test.js"></script>
4 <script> 10 <script>
5 assertComposition({ 11 assertComposition({
6 property: 'object-position', 12 property: 'offset-anchor',
7 underlying: '40px 60px', 13 underlying: '40px 60px',
8 addFrom: '60px 40px', 14 addFrom: '60px 40px',
9 addTo: '160px 140px', 15 addTo: '160px 140px',
10 }, [ 16 }, [
11 {at: -0.25, is: '75px 75px'}, 17 {at: -0.25, is: '75px 75px'},
12 {at: 0, is: '100px 100px'}, 18 {at: 0, is: '100px 100px'},
13 {at: 0.25, is: '125px 125px'}, 19 {at: 0.25, is: '125px 125px'},
14 {at: 0.5, is: '150px 150px'}, 20 {at: 0.5, is: '150px 150px'},
15 {at: 0.75, is: '175px 175px'}, 21 {at: 0.75, is: '175px 175px'},
16 {at: 1, is: '200px 200px'}, 22 {at: 1, is: '200px 200px'},
17 {at: 1.25, is: '225px 225px'}, 23 {at: 1.25, is: '225px 225px'},
18 ]); 24 ]);
19 25
20 assertComposition({ 26 assertComposition({
21 property: 'object-position', 27 property: 'offset-anchor',
22 underlying: 'top 20% left 40%', 28 underlying: 'top 20% left 40%',
23 addFrom: 'left 60% top 80%', 29 addFrom: 'left 60% top 80%',
24 addTo: 'right 80% bottom 40%', 30 addTo: 'right 80% bottom 40%',
25 }, [ 31 }, [
26 {at: -0.25, is: '110% 105%'}, 32 {at: -0.25, is: '110% 105%'},
27 {at: 0, is: '100% 100%'}, 33 {at: 0, is: '100% 100%'},
28 {at: 0.25, is: '90% 95%'}, 34 {at: 0.25, is: '90% 95%'},
29 {at: 0.5, is: '80% 90%'}, 35 {at: 0.5, is: '80% 90%'},
30 {at: 0.75, is: '70% 85%'}, 36 {at: 0.75, is: '70% 85%'},
31 {at: 1, is: '60% 80%'}, 37 {at: 1, is: '60% 80%'},
32 {at: 1.25, is: '50% 75%'}, 38 {at: 1.25, is: '50% 75%'},
33 ]); 39 ]);
34 40
35 assertComposition({ 41 assertComposition({
36 property: 'object-position', 42 property: 'offset-anchor',
37 underlying: '40px 60px', 43 underlying: '40px 60px',
38 replaceFrom: '100px 200px', 44 replaceFrom: '100px 200px',
39 addTo: '160px 40px', 45 addTo: '160px 40px',
40 }, [ 46 }, [
41 {at: -0.25, is: '75px 225px'}, 47 {at: -0.25, is: '75px 225px'},
42 {at: 0, is: '100px 200px'}, 48 {at: 0, is: '100px 200px'},
43 {at: 0.25, is: '125px 175px'}, 49 {at: 0.25, is: '125px 175px'},
44 {at: 0.5, is: '150px 150px'}, 50 {at: 0.5, is: '150px 150px'},
45 {at: 0.75, is: '175px 125px'}, 51 {at: 0.75, is: '175px 125px'},
46 {at: 1, is: '200px 100px'}, 52 {at: 1, is: '200px 100px'},
47 {at: 1.25, is: '225px 75px'}, 53 {at: 1.25, is: '225px 75px'},
48 ]); 54 ]);
49 55
50 assertComposition({ 56 assertComposition({
51 property: 'object-position', 57 property: 'offset-anchor',
52 underlying: '40px 60px', 58 underlying: '40px 60px',
53 addFrom: '60px 140px', 59 addFrom: '60px 140px',
54 replaceTo: '200px 100px', 60 replaceTo: '200px 100px',
55 }, [ 61 }, [
56 {at: -0.25, is: '75px 225px'}, 62 {at: -0.25, is: '75px 225px'},
57 {at: 0, is: '100px 200px'}, 63 {at: 0, is: '100px 200px'},
58 {at: 0.25, is: '125px 175px'}, 64 {at: 0.25, is: '125px 175px'},
59 {at: 0.5, is: '150px 150px'}, 65 {at: 0.5, is: '150px 150px'},
60 {at: 0.75, is: '175px 125px'}, 66 {at: 0.75, is: '175px 125px'},
61 {at: 1, is: '200px 100px'}, 67 {at: 1, is: '200px 100px'},
62 {at: 1.25, is: '225px 75px'}, 68 {at: 1.25, is: '225px 75px'},
63 ]);</script> 69 ]);
70 </script>
64 </body> 71 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698