forked from bencallahan/media-query-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
124 lines (91 loc) · 2.27 KB
/
index.html
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<html>
<head>
<!-- <meta name="viewport" content="width=device-width, initial-scale=1.0"> -->
<style>
p:before {
content: "False";
}
@media screen and (min-width: 750px) {
p.p0:before {
content: "True: screen and (min-width: 750px)";
}
}
@media not print {
p.p1:before {
content: "True: not print";
}
}
@media print {
p.p2:before {
content: "True: print";
}
}
@media not print and (min-width: 750px) {
p.p3:before {
content: "True: not print and (min-width: 750px)";
}
}
@media (not print) and (min-width: 750px) {
p.p4:before {
content: "True: (not print) and (min-width: 750px)";
}
}
@media not (print and (min-width: 750px)) {
p.p5:before {
content: "True: not (print and (min-width: 750px))";
}
}
@media (min-width: 750px) and not print {
p.p6:before {
content: "True: (min-width: 750px) and not print";
}
}
@media not print, (min-width: 750px) {
p.p7:before {
content: "True: not print, (min-width: 750px)";
}
}
@media screen, (min-width: 750px) {
p.p8:before {
content: "True: screen, (min-width: 750px)";
}
}
@media not print and all and (min-width: 750px) {
p.p9:before {
content: "True: not print and all and (min-width: 750px)";
}
}
@media not print and only (min-width: 750px) {
p.p10:before {
content: "True: not print and only (min-width: 750px)";
}
}
@media not print and only and (min-width: 750px) {
p.p11:before {
content: "True: not print and only and (min-width: 750px)";
}
}
@media only not print and (min-width: 750px) {
p.p12:before {
content: "True: only not print and (min-width: 750px)";
}
}
</style>
</head>
<body>
<h1>Media Query Tests</h1>
<p class="p0"></p>
<p class="p1"></p>
<p class="p2"></p>
<p class="p3"></p>
<p class="p4"></p>
<p class="p5"></p>
<p class="p6"></p>
<p class="p7"></p>
<p class="p8"></p>
<p class="p9"></p>
<p class="p10"></p>
<p class="p11"></p>
<p class="p12"></p>
</body>
</html>