inline-svg-100-percent-in-body-ref.html (596B)
1 <!DOCTYPE html> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title>CSS Test Reference: SVG element with a view box with explicit 100% width and height should occupy the entire view port</title> 5 <link rel="author" title="Google" href="http://www.google.com/" /> 6 <style type="text/css"> 7 8 * { 9 margin: 0; 10 padding: 0; 11 } 12 13 img { 14 display: block; 15 visibility: hidden; 16 } 17 18 div { 19 background-color: green; 20 } 21 22 </style> 23 </head> 24 <body> 25 <p>The box below should occupy the entire view port.</p> 26 <div><img src="../support/60x60-green.png" width="100%" height="100%"></div> 27 </body> 28 </html>