mq-calc-001

support for calc in Media Queries

WeasyPrint

Reference (good) by WeasyPrint

Reference (good) by this browser

This browser

Assertion
calc can be used in Media Queries

Source

 1 <!DOCTYPE html>
 2 <html><head>
 3 		<title>Test: support for calc in Media Queries</title>
 4 		<link href="http://florian.rivoal.net/" rel="author" title="Florian Rivoal">
 5 		<link href="http://www.w3.org/TR/css3-values/#calc-notation" rel="help">
 6 		<link href="reference/ref-filled-green-100px-square.htm" rel="match">
 7 		<meta content="calc can be used in Media Queries" name="assert">
 8 		<meta content="" name="flags">
 9 		<style>
10 			div {
11 				width: 100px;
12 				height: 100px;
13 				background-color: red;
14 			}
15 			@media (min-width: calc(1px - 1px)){
16 				div { background-color: green; }
17 			}
18 	</style>
19 	</head>
20 	<body>
21 		<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
22 		<div></div>
23 	
24 
25 
26 </body></html>