blob: 2c44204ac7174ebf6033b8c15e78bf820ff16f34 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<title>object-fit on SVG images, no forced aspect ratio retention</title>
<style type="text/css">
.group > div {
display: inline-block;
overflow: hidden;
height: 72px;
width: 144px;
margin: 2px 10px;
border: 1px solid black;
background-color: gray;
}
.group > * > * { display: block; }
.group > *:nth-child(1) * { height:100%; width:100%; }
.group > *:nth-child(2) * { height:100%; margin-left:36px; }
.group > *:nth-child(3) * { width:100%; margin-top:-36px; }
.group > *:nth-child(4) * { height:200px; margin-top:-64px; margin-left:-28px; }
.group > *:nth-child(5) * { height:100%; margin-left:36px; }
.group > *:nth-child(6) * { height:100%; margin-left:36px; }
.group > *:nth-child(7) * { height:100%; width:100%; }
</style>
</head>
<body>
<div class="group">
<div><img src="resources/circle2.svg" type="image/svg+xml"></div>
<div><img src="resources/circle2.svg" type="image/svg+xml"></div>
<div><img src="resources/circle2.svg" type="image/svg+xml"></div>
<div><img src="resources/circle2.svg" type="image/svg+xml"></div>
<div><img src="resources/circle2.svg" type="image/svg+xml"></div>
<div><img src="resources/circle2.svg" type="image/svg+xml"></div>
<div><img src="resources/circle2.svg" type="image/svg+xml"></div>
</div>
</body>
</html>