summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/mediaqueries/mq-invalid-media-type-003.html
blob: acc524ca98a305fe8fad3a871c18e02bbe5c4933 (plain)
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
<!doctype html>
<html>
	<head>
		<title>Test: syntax error handling in Media Queries</title>
		<link rel="author" title="Florian Rivoal" href="http://florian.rivoal.net/">
		<link rel="help" href="https://drafts.csswg.org/mediaqueries4/#error-handling">
		<link rel="match" href="../reference/ref-filled-green-100px-square.xht">
		<meta name="assert" content="'not' is an invalid media type">
		<meta name="flags" content="invalid">
		<style>
			div {
				width: 100px;
				height: 100px;
			}
			@media all {
				div { background-color: green; }
			}
			@media not not {
				div { background-color: red; }
			}
			@media not {
				div { background-color: red; }
			}
	</style>
	</head>
	<body>
		<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
		<div></div>
	</body>
</html>