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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/interpolation/webkit-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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <meta charset="UTF-8"> 2 <meta charset="UTF-8">
3 <style> 3 <style>
4 .target { 4 .target {
5 width: 80px; 5 width: 80px;
6 height: 100px; 6 height: 100px;
7 display: inline-block; 7 display: inline-block;
8 border: 10px solid black; 8 border: 10px solid black;
9 background-repeat: no-repeat; 9 background-repeat: no-repeat;
10 background-image: url(../resources/stripes-100.png), 10 background-image: url(../resources/stripes-100.png),
11 url(../resources/stripes-100.png), 11 url(../resources/stripes-100.png),
12 url(../resources/blue-100.png), 12 url(../resources/blue-100.png),
13 url(../resources/green-100.png); 13 url(../resources/green-100.png);
14 background-position: left top, right top, left bottom, right bottom; 14 background-position: left top, right top, left bottom, right bottom;
15 } 15 }
16 .expected { 16 .expected {
17 margin-right: 10px; 17 margin-right: 10px;
18 border-color: green; 18 border-color: green;
19 } 19 }
20 </style> 20 </style>
21 <body> 21 <body>
22 <script src="resources/interpolation-test.js"></script> 22 <script src="resources/interpolation-test.js"></script>
23 <script> 23 <script>
24 // Matched keywords in size value list. 24 // Matched keywords in size value list.
25 assertNoInterpolation({ 25 assertInterpolation({
26 property: '-webkit-background-size', 26 property: '-webkit-background-size',
27 from: '0px 0px, 0px 0px, contain, cover', 27 from: '0px 0px, 0px 0px, contain, cover',
28 to: '40px 40px, 40px 40px, contain, cover', 28 to: '40px 40px, 40px 40px, contain, cover',
29 }); 29 }, [
30 {at: -0.25, is: ' 0px 0px, 0px 0px, contain, cover'},
31 {at: 0, is: ' 0px 0px, 0px 0px, contain, cover'},
32 {at: 0.25, is: '10px 10px, 10px 10px, contain, cover'},
33 {at: 0.5, is: '20px 20px, 20px 20px, contain, cover'},
34 {at: 0.75, is: '30px 30px, 30px 30px, contain, cover'},
35 {at: 1, is: '40px 40px, 40px 40px, contain, cover'},
36 {at: 1.25, is: '50px 50px, 50px 50px, contain, cover'},
37 ]);
30 38
31 // Mismatched keywords in size value list. 39 // Mismatched keywords in size value list.
32 assertNoInterpolation({ 40 assertNoInterpolation({
33 property: '-webkit-background-size', 41 property: '-webkit-background-size',
34 from: '0px 0px, 0px 0px, contain, cover', 42 from: '0px 0px, 0px 0px, contain, cover',
35 to: '40px 40px, 40px 40px, cover, contain', 43 to: '40px 40px, 40px 40px, cover, contain',
36 }); 44 });
37 45
38 // Equal number of size values as background images. 46 // Equal number of size values as background images.
39 assertInterpolation({ 47 assertInterpolation({
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 {at: -0.25, is: ' 0px 0px, 80px 0px, 0px 0px, 90px 0px'}, 82 {at: -0.25, is: ' 0px 0px, 80px 0px, 0px 0px, 90px 0px'},
75 {at: 0, is: ' 0px 0px, 80px 0px, 0px 0px, 80px 0px'}, 83 {at: 0, is: ' 0px 0px, 80px 0px, 0px 0px, 80px 0px'},
76 {at: 0.25, is: '10px 10px, 80px 20px, 0px 20px, 70px 10px'}, 84 {at: 0.25, is: '10px 10px, 80px 20px, 0px 20px, 70px 10px'},
77 {at: 0.5, is: '20px 20px, 80px 40px, 0px 40px, 60px 20px'}, 85 {at: 0.5, is: '20px 20px, 80px 40px, 0px 40px, 60px 20px'},
78 {at: 0.75, is: '30px 30px, 80px 60px, 0px 60px, 50px 30px'}, 86 {at: 0.75, is: '30px 30px, 80px 60px, 0px 60px, 50px 30px'},
79 {at: 1, is: '40px 40px, 80px 80px, 0px 80px, 40px 40px'}, 87 {at: 1, is: '40px 40px, 80px 80px, 0px 80px, 40px 40px'},
80 {at: 1.25, is: '50px 50px, 80px 100px, 0px 100px, 30px 50px'}, 88 {at: 1.25, is: '50px 50px, 80px 100px, 0px 100px, 30px 50px'},
81 ]); 89 ]);
82 </script> 90 </script>
83 </body> 91 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698