Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<head>
<title>CSS Test Reference: SVG element with a view box with explicit 100% width and height should occupy the entire view port</title>
<style type="text/css">
* {
margin: 0;
padding: 0;
}
img {
display: block;
visibility: hidden;
}
div {
background-color: green;
}
</style>
</head>
<body>
<p>The box below should occupy the entire view port.</p>
<div><img src="../support/60x60-green.png" width="100%" height="100%"></div>
</body>
</html>