-
-
Notifications
You must be signed in to change notification settings - Fork 75
/
Copy pathbasic.css
110 lines (102 loc) · 2.13 KB
/
basic.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
.test-unchanged-properties {
order: 1;
background-image: url("img/test.png");
order: 2;
background: url(my-img-print.png) top left no-repeat red;
order: 3;
}
.test-changed-properties {
order: 1;
background-image: image-set(
url(img/test.png) 1x
);
order: 2;
background-image: image-set(
url(img/test.png) 2x
);
order: 3;
background-image: image-set(
url(img/test.png) 1x,
url(img/test-2x.png) 2x
);
order: 4;
background-image: image-set(
url(img/test.png) 1x,
url(img/test-2x.png) 2x,
url(my-img-print.png) 600dpi
);
order: 5;
}
.test-mixed-units {
order: 1;
background-image: image-set(
url(img/test.png) 1x,
url(img/test-2x.png) 2dppx
);
order: 2;
background-image: image-set(
url(img/test.png) 1x,
url(img/test-2x.png) 20dpcm
);
order: 3;
}
.test-mixed-order {
order: 1;
background: image-set(
url(../images/bck@3x.png) 3x,
url(../images/bck.png) 1x,
url(../images/bck@2x.png) 2x
);
order: 2;
background: image-set(
url(../images/bck@2x.png) 2x,
url(../images/bck@3x.png) 3x,
url(../images/bck.png) 1x
);
order: 3;
}
.test-no-url {
order: 1;
background-image: image-set(
"img/test.png" 1x,
"img/test-2x.png" 2x
);
order: 2;
background-image: image-set(
"img/test.png" 1x,
"img/test-2x.png" 2x,
"my-img-print.png" 600dpi
);
order: 3;
}
.test-webkit-prefix {
order: 1;
background-image: -webkit-image-set(
url(img/test.png) 1x,
url(img/test-2x.png) 2x,
url(my-img-print.png) 600dpi
);
order: 2;
}
@media (min-width: 1000px) {
.test-within-mq-1 {
background-image: image-set(
url(img/test.png) 1x,
url(img/test-2x.png) 2x,
url(my-img-print.png) 600dpi
);
}
}
@media (min-width: 768px) and (max-width: 1024px) {
.test-within-mq-2 {
background-image: image-set(
url(img/test.png) 1x,
url(img/test-2x.png) 2x,
url(my-img-print.png) 600dpi
);
}
}
.test-unparseable-image-set-function {
background-image: image-set(url(data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==) 1x, url(img/test-2x.png) 2x);
background-image: image-set(data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==, url(img/test-2x.png) 2x);
}