-
Notifications
You must be signed in to change notification settings - Fork 1
/
tests.html
70 lines (70 loc) · 1.78 KB
/
tests.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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible" />
<title>Media Queries Tests</title>
<meta content="width=device-width,initial-scale=1.0" name="viewport" />
<style type="text/css">
div:before{ display: block; height: 30px; }
@media handheld{
.a1:before{
background: #f00;
content: "handheld";
}
}
@media only screen and (max-width: 480px){
.a2:before{
background: #00f;
content: "only screen and (max-width: 480px)";
}
}
@media only screen and (max-device-width: 480px){
.a3:before{
background: #aaf;
content: "only screen and (max-device-width: 480px)";
}
}
@media only screen and (max-device-width: 480px) and (resolution: 163dpi){
.a4:before{
background: #faa;
content: "only screen and (max-device-width: 480px) and (resolution: 163dpi)";
}
}
@media only screen and (-webkit-min-device-pixel-ratio: 2){
.a5:before{
background: #003;
content: "only screen and (-webkit-min-device-pixel-ratio: 2) ";
}
}
@media only screen and (min-resolution: 300dpi){
.a6:before{
background: #00a;
content: "only screen and (min-resolution: 300dpi)";
}
}
@media only screen and (-webkit-min-device-pixel-ratio : 0.75), only screen and (min-device-pixel-ratio : 0.75) {
.a7:before{
background: #300;
content: "only screen and (min-device-pixel-ratio : 0.75)";
}
}
@media only screen and (orientation: landscape) and (max-device-width: 800px) {
.a8:before{
background: #aa3;
content: "only screen and (orientation: landscape) and (max-device-width: 800px) ";
}
}
</style>
</head>
<body>
<div class="a1"/>
<div class="a2"/>
<div class="a3"/>
<div class="a4"/>
<div class="a5"/>
<div class="a6"/>
<div class="a7"/>
<div class="a8"/>
</body>
</html>