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