vh-support-margin

Viewports units are supported in margin properties

WeasyPrint

Reference (good) by WeasyPrint

Reference (good) by this browser

This browser

Assertion
Viewports units are supported in margin properties

Source

 1 <!DOCTYPE html>
 2 <html><head>
 3 	<meta charset="utf-8">
 4 	<title>
 5 		CSS Values and Units Test:
 6 		Viewports units are supported in margin properties
 7 	</title>
 8 	<meta content="
 9 		Viewports units are supported in margin properties
10 	" name="assert">
11 
12 	<link href="mailto:fremycompany.developer@yahoo.fr" rel="author" title="François REMY">
13 
14 	<link href="http://www.w3.org/TR/css3-values/#viewport-relative-lengths" rel="help">
15 
16 	<link href="reference/all-green.htm" rel="match">
17 
18 	<style type="text/css">
19 
20 			html, body { margin: 0px; padding: 0px; }
21 
22 			html { background: green; }
23 			#target { background: red; width: 100%; height: 100%; margin-left: -100vw; margin-top: -100vh; }
24 
25 	</style>
26 
27 </head>
28 <body>
29 
30 	<div id="target"></div>
31 
32 
33 
34 </body></html>