forked from burg/timelapse
/
invalid-media-query-list.html
49 lines (44 loc) · 1.12 KB
/
invalid-media-query-list.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
<!DOCTYPE html>
<html>
<head>
<style>
div {
height: 20px;
border: solid 1px black;
}
@media screen and (min-width: 480px), screen and (device-width: 768px) {
#valid1 {
background-color: green;
}
}
@media screen {
#valid2 {
background-color: green;
}
}
@media {
#valid3 {
background-color: green;
}
}
@media screen and (min-width: 480px) screen and (device-width: 768px) {
#invalid1 {
background-color: red;
}
}
@media screen and (min-width: 480px) and (device-width: 768px) {
#invalid2 {
background-color: red;
}
}
</style>
</head>
<body>
<p>This tests if we ignore syntactically invalid media query lists with multiple media queries and missing media types.</p>
<div id='valid1'></div>
<div id='valid2'></div>
<div id='valid3'></div>
<div id='invalid1'></div>
<div id='invalid2'></div>
</body>
</html>