OLD | NEW |
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 Loading... |
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 Loading... |
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> |
OLD | NEW |