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

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

Issue 2027933002: Allow transitions on background-size with positionally matched keywords (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Inline is required Created 4 years, 6 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/background-size-interpolation-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <meta charset="UTF-8"> 2 <meta charset="UTF-8">
3 <style> 3 <style>
4 .parent { 4 .parent {
5 background-size: 100px 100px; 5 background-size: 100px 100px;
6 } 6 }
7 .target { 7 .target {
8 width: 80px; 8 width: 80px;
9 height: 100px; 9 height: 100px;
10 display: inline-block; 10 display: inline-block;
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 // unset 66 // unset
67 // TODO(alancutter): Fix transitions: https://crbug.com/513127 67 // TODO(alancutter): Fix transitions: https://crbug.com/513127
68 assertNoInterpolation({ 68 assertNoInterpolation({
69 property: 'background-size', 69 property: 'background-size',
70 from: 'unset', 70 from: 'unset',
71 to: '20px 20px, 0px 0px', 71 to: '20px 20px, 0px 0px',
72 }); 72 });
73 73
74 // Matched keywords in size value list. 74 // Matched keywords in size value list.
75 assertNoInterpolation({ 75 assertInterpolation({
76 property: 'background-size', 76 property: 'background-size',
77 from: '0px 0px, 0px 0px, contain, cover', 77 from: '0px 0px, 0px 0px, contain, cover',
78 to: '40px 40px, 40px 40px, contain, cover', 78 to: '40px 40px, 40px 40px, contain, cover',
79 }); 79 }, [
80 {at: -0.25, is: ' 0px 0px, 0px 0px, contain, cover'},
81 {at: 0, is: ' 0px 0px, 0px 0px, contain, cover'},
82 {at: 0.25, is: '10px 10px, 10px 10px, contain, cover'},
83 {at: 0.5, is: '20px 20px, 20px 20px, contain, cover'},
84 {at: 0.75, is: '30px 30px, 30px 30px, contain, cover'},
85 {at: 1, is: '40px 40px, 40px 40px, contain, cover'},
86 {at: 1.25, is: '50px 50px, 50px 50px, contain, cover'},
87 ]);
80 88
81 // Mismatched keywords in size value list. 89 // Mismatched keywords in size value list.
82 assertNoInterpolation({ 90 assertNoInterpolation({
83 property: 'background-size', 91 property: 'background-size',
84 from: '0px 0px, 0px 0px, contain, cover', 92 from: '0px 0px, 0px 0px, contain, cover',
85 to: '40px 40px, 40px 40px, cover, contain', 93 to: '40px 40px, 40px 40px, cover, contain',
86 }); 94 });
87 95
88 // Equal number of size values as background images. 96 // Equal number of size values as background images.
89 assertInterpolation({ 97 assertInterpolation({
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 {at: -0.25, is: ' 0px 0px, 80px 0px, 0px 0px, 90px 0px'}, 132 {at: -0.25, is: ' 0px 0px, 80px 0px, 0px 0px, 90px 0px'},
125 {at: 0, is: ' 0px 0px, 80px 0px, 0px 0px, 80px 0px'}, 133 {at: 0, is: ' 0px 0px, 80px 0px, 0px 0px, 80px 0px'},
126 {at: 0.25, is: '10px 10px, 80px 20px, 0px 20px, 70px 10px'}, 134 {at: 0.25, is: '10px 10px, 80px 20px, 0px 20px, 70px 10px'},
127 {at: 0.5, is: '20px 20px, 80px 40px, 0px 40px, 60px 20px'}, 135 {at: 0.5, is: '20px 20px, 80px 40px, 0px 40px, 60px 20px'},
128 {at: 0.75, is: '30px 30px, 80px 60px, 0px 60px, 50px 30px'}, 136 {at: 0.75, is: '30px 30px, 80px 60px, 0px 60px, 50px 30px'},
129 {at: 1, is: '40px 40px, 80px 80px, 0px 80px, 40px 40px'}, 137 {at: 1, is: '40px 40px, 80px 80px, 0px 80px, 40px 40px'},
130 {at: 1.25, is: '50px 50px, 80px 100px, 0px 100px, 30px 50px'}, 138 {at: 1.25, is: '50px 50px, 80px 100px, 0px 100px, 30px 50px'},
131 ]); 139 ]);
132 </script> 140 </script>
133 </body> 141 </body>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/animations/interpolation/background-size-interpolation-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698