aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/css-tests/css-values-3_dev/xhtml1/calc-in-media-queries-002.xht
blob: 46704727791f4232670fd49bbbbfaf5c98744aa2 (plain) (blame)
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
	<meta charset="utf-8" />
	<title>
		CSS Values and Units and Media Queries Test:
		Calc function inside media queries
	</title>
	<meta content="
		The calc() expression is supported in the min-width media query properly (=with range clamping).
	" name="assert" />

	<link href="mailto:fremycompany.developer@yahoo.fr" rel="author" title="François REMY" />

	<link href="http://www.w3.org/TR/css3-values/#calc-notation" rel="help" />
	<link href="http://www.w3.org/TR/css3-mediaqueries/#width" rel="help" />

	<link href="reference/all-green.xht" rel="match" />

	<style type="text/css">

		html { background: red; }
		@media (min-width: calc(-100px)) { /* should clamp to 0px */
			html { background: green; }
		}

	</style>

</head>
<body>

	<div id="target"></div>



</body></html>