vh-inherit

Viewport units are inherited properly

WeasyPrint

Reference (good) by WeasyPrint

Reference (good) by this browser

This browser

Assertion
Viewport units are inherited properly

Source

 1 <!DOCTYPE html>
 2 <html><head>
 3 	<meta charset="utf-8">
 4 	<title>
 5 		CSS Values and Units Test:
 6 		Viewport units are inherited properly
 7 	</title>
 8 	<meta content="
 9 		Viewport units are inherited properly
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: red; }
23 			#outer { position: relative; background: green; width: 50vw; height: 100vh; }
24 			#inner { position: absolute; background: green; left: 100%; width: inherit; height: inherit; }
25 
26 	</style>
27 
28 </head>
29 <body>
30 
31 	<div id="outer"><div id="inner"></div></div>
32 
33 
34 
35 </body></html>