|
33 | 33 | order: 5;
|
34 | 34 | }
|
35 | 35 |
|
36 |
| -@media (-webkit-min-device-pixel-ratio: 1), (min-resolution: 96dpi) { |
37 |
| - |
38 |
| -.test-changed-properties { |
39 |
| - background-image: url(img/test.png); |
40 |
| -} |
41 |
| -} |
42 |
| - |
43 | 36 | @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
44 | 37 |
|
45 | 38 | .test-changed-properties {
|
|
54 | 47 | }
|
55 | 48 | }
|
56 | 49 |
|
57 |
| -@media (-webkit-min-device-pixel-ratio: 1), (min-resolution: 96dpi) { |
58 |
| - |
59 |
| -.test-changed-properties { |
60 |
| - background-image: url(img/test.png); |
61 |
| -} |
62 |
| -} |
63 |
| - |
64 | 50 | @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
65 | 51 |
|
66 | 52 | .test-changed-properties {
|
67 | 53 | background-image: url(img/test-2x.png);
|
68 | 54 | }
|
69 | 55 | }
|
70 | 56 |
|
71 |
| -@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) { |
72 |
| - |
73 |
| -.test-changed-properties { |
74 |
| - background-image: url(img/test.png); |
75 |
| -} |
76 |
| -} |
77 |
| - |
78 |
| -@media (-webkit-min-device-pixel-ratio: 1), (min-resolution: 96dpi) { |
79 |
| - |
80 |
| -.test-changed-properties { |
81 |
| - background-image: url(img/test.png); |
82 |
| -} |
83 |
| -} |
84 |
| - |
85 | 57 | .test-mixed-units {
|
86 | 58 | order: 1;
|
87 | 59 | background-image: url(img/test.png);
|
88 | 60 | background-image: image-set(
|
89 | 61 | url(img/test.png) 1x,
|
90 |
| - url(img/test-2x.png) 2dppx |
| 62 | + url(img/test-2dppx.png) 2dppx |
91 | 63 | );
|
92 | 64 | order: 2;
|
93 |
| - background-image: url(img/test-2x.png); |
| 65 | + background-image: url(img/test-2dpcm.png); |
94 | 66 | background-image: image-set(
|
95 | 67 | url(img/test.png) 1x,
|
96 |
| - url(img/test-2x.png) 20dpcm |
| 68 | + url(img/test-2dpcm.png) 20dpcm |
97 | 69 | );
|
98 | 70 | order: 3;
|
99 | 71 | }
|
100 | 72 |
|
101 |
| -@media (-webkit-min-device-pixel-ratio: 0.52), (min-resolution: 50.8dpi) { |
102 |
| - |
103 |
| -.test-mixed-units { |
104 |
| - background-image: url(img/test-2x.png); |
105 |
| -} |
106 |
| -} |
107 |
| - |
108 |
| -@media (-webkit-min-device-pixel-ratio: 1), (min-resolution: 96dpi) { |
109 |
| - |
110 |
| -.test-mixed-units { |
111 |
| - background-image: url(img/test.png); |
112 |
| -} |
113 |
| -} |
114 |
| - |
115 | 73 | @media (-webkit-min-device-pixel-ratio: 1), (min-resolution: 96dpi) {
|
116 | 74 |
|
117 | 75 | .test-mixed-units {
|
|
122 | 80 | @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
123 | 81 |
|
124 | 82 | .test-mixed-units {
|
125 |
| - background-image: url(img/test-2x.png); |
| 83 | + background-image: url(img/test-2dppx.png); |
126 | 84 | }
|
127 | 85 | }
|
128 | 86 |
|
|
144 | 102 | order: 3;
|
145 | 103 | }
|
146 | 104 |
|
147 |
| -@media (-webkit-min-device-pixel-ratio: 1), (min-resolution: 96dpi) { |
148 |
| - |
149 |
| -.test-mixed-order { |
150 |
| - background: url(../images/bck.png); |
151 |
| -} |
152 |
| -} |
153 |
| - |
154 | 105 | @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
155 | 106 |
|
156 | 107 | .test-mixed-order {
|
|
165 | 116 | }
|
166 | 117 | }
|
167 | 118 |
|
168 |
| -@media (-webkit-min-device-pixel-ratio: 1), (min-resolution: 96dpi) { |
169 |
| - |
170 |
| -.test-mixed-order { |
171 |
| - background: url(../images/bck.png); |
172 |
| -} |
173 |
| -} |
174 |
| - |
175 | 119 | @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
176 | 120 |
|
177 | 121 | .test-mixed-order {
|
|
203 | 147 | order: 3;
|
204 | 148 | }
|
205 | 149 |
|
206 |
| -@media (-webkit-min-device-pixel-ratio: 1), (min-resolution: 96dpi) { |
207 |
| - |
208 |
| -.test-no-url { |
209 |
| - background-image: "img/test.png"; |
210 |
| -} |
211 |
| -} |
212 |
| - |
213 | 150 | @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
214 | 151 |
|
215 | 152 | .test-no-url {
|
|
224 | 161 | }
|
225 | 162 | }
|
226 | 163 |
|
227 |
| -@media (-webkit-min-device-pixel-ratio: 1), (min-resolution: 96dpi) { |
228 |
| - |
229 |
| -.test-no-url { |
230 |
| - background-image: "img/test.png"; |
231 |
| -} |
232 |
| -} |
233 |
| - |
234 | 164 | @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
235 | 165 |
|
236 | 166 | .test-no-url {
|
|
249 | 179 | order: 2;
|
250 | 180 | }
|
251 | 181 |
|
252 |
| -@media (-webkit-min-device-pixel-ratio: 1), (min-resolution: 96dpi) { |
253 |
| - |
254 |
| -.test-webkit-prefix { |
255 |
| - background-image: url(img/test.png); |
256 |
| -} |
257 |
| -} |
258 |
| - |
259 | 182 | @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
260 | 183 |
|
261 | 184 | .test-webkit-prefix {
|
|
279 | 202 | url(my-img-print.png) 600dpi
|
280 | 203 | );
|
281 | 204 | }
|
282 |
| - @media (-webkit-min-device-pixel-ratio: 1), (min-resolution: 96dpi) { |
283 |
| - .test-within-mq-1 { |
284 |
| - background-image: url(img/test.png); |
285 |
| - } |
286 |
| - } |
287 | 205 | @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
288 | 206 | .test-within-mq-1 {
|
289 | 207 | background-image: url(img/test-2x.png);
|
|
305 | 223 | url(my-img-print.png) 600dpi
|
306 | 224 | );
|
307 | 225 | }
|
308 |
| - @media (-webkit-min-device-pixel-ratio: 1), (min-resolution: 96dpi) { |
309 |
| - .test-within-mq-2 { |
310 |
| - background-image: url(img/test.png); |
311 |
| - } |
312 |
| - } |
313 | 226 | @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
314 | 227 | .test-within-mq-2 {
|
315 | 228 | background-image: url(img/test-2x.png);
|
|
0 commit comments