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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/composition/background-size-composition.html

Issue 1689383002: Add additive animation support for CSS property background-size (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@_transformOriginInterpolationType
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/interpolation/webkit-mask-size-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 <meta charset="UTF-8">
3 <style>
4 .target {
5 background-image: url(), url();
6 }
7 </style>
8 <body>
9 <script src="../interpolation/resources/interpolation-test.js"></script>
10 <script>
11 assertComposition({
12 property: 'background-size',
13 underlying: '40px 40px',
14 addFrom: '60px 60px, 260px 260px',
15 addTo: '160px 160px',
16 }, [
17 {at: -0.25, is: '75px 75px, 325px 325px'},
18 {at: 0, is: '100px 100px, 300px 300px'},
19 {at: 0.25, is: '125px 125px, 275px 275px'},
20 {at: 0.5, is: '150px 150px, 250px 250px'},
21 {at: 0.75, is: '175px 175px, 225px 225px'},
22 {at: 1, is: '200px 200px, 200px 200px'},
23 {at: 1.25, is: '225px 225px, 175px 175px'},
24 ]);
25
26 assertComposition({
27 property: 'background-size',
28 underlying: '20% 40%',
29 addFrom: '40px 80px, 180% 160%',
30 addTo: '80% 40%',
31 }, [
32 {at: -0.25, is: '50px calc(100px + 30%), 225% 230%'},
33 {at: 0, is: 'calc(40px + 20%) calc(80px + 40%), 200% 200%'},
34 {at: 0.25, is: 'calc(30px + 40%) calc(60px + 50%), 175% 170%'},
35 {at: 0.5, is: 'calc(20px + 60%) calc(40px + 60%), 150% 140%'},
36 {at: 0.75, is: 'calc(10px + 80%) calc(20px + 70%), 125% 110%'},
37 {at: 1, is: '100% 80%, 100% 80%'},
38 {at: 1.25, is: 'calc(-10px + 120%) calc(-20px + 90%), 75% 50%'},
39 ]);
40
41 assertComposition({
42 property: 'background-size',
43 underlying: '40px 40px',
44 replaceFrom: '100px 100px',
45 addTo: '160px 160px',
46 }, [
47 {at: -0.25, is: '75px 75px, 75px 75px'},
48 {at: 0, is: '100px 100px, 100px 100px'},
49 {at: 0.25, is: '125px 125px, 125px 125px'},
50 {at: 0.5, is: '150px 150px, 150px 150px'},
51 {at: 0.75, is: '175px 175px, 175px 175px'},
52 {at: 1, is: '200px 200px, 200px 200px'},
53 {at: 1.25, is: '225px 225px, 225px 225px'},
54 ]);
55
56 assertComposition({
57 property: 'background-size',
58 underlying: '40px 40px',
59 addFrom: '60px 60px',
60 replaceTo: '200px 200px',
61 }, [
62 {at: -0.25, is: '75px 75px, 75px 75px'},
63 {at: 0, is: '100px 100px, 100px 100px'},
64 {at: 0.25, is: '125px 125px, 125px 125px'},
65 {at: 0.5, is: '150px 150px, 150px 150px'},
66 {at: 0.75, is: '175px 175px, 175px 175px'},
67 {at: 1, is: '200px 200px, 200px 200px'},
68 {at: 1.25, is: '225px 225px, 225px 225px'},
69 ]);
70
71 assertComposition({
72 property: 'background-size',
73 underlying: 'auto, contain',
74 addFrom: '100px 150px',
75 replaceTo: '200px 250px',
76 }, [
77 {at: -0.25, is: '75px 125px, 75px 125px'},
78 {at: 0, is: '100px 150px, 100px 150px'},
79 {at: 0.25, is: '125px 175px, 125px 175px'},
80 {at: 0.5, is: '150px 200px, 150px 200px'},
81 {at: 0.75, is: '175px 225px, 175px 225px'},
82 {at: 1, is: '200px 250px, 200px 250px'},
83 {at: 1.25, is: '225px 275px, 225px 275px'},
84 ]);
85 </script>
86 </body>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/animations/interpolation/webkit-mask-size-interpolation.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698