blob: 059291813a6b9228f7cae01ab3eea76bbaff7ee3 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<title>object-fit on input images</title>
<style type="text/css">
.group > div {
display: inline-block;
overflow: hidden;
width: 72px;
height: 72px;
margin: 2px 10px;
border: 1px solid black;
background-color: gray;
}
.group > * > * { display: block; }
.group > *:nth-child(1) * { width:100%; height:100%; }
.group > *:nth-child(2) * { width:100%; margin-top:25%; }
.group > *:nth-child(3) * { height:100%; margin-left:-50%; }
.group > *:nth-child(4) * { width:288px; margin-left:-108px; margin-top:-36px; }
.group > *:nth-child(5) * { width:100%; margin-top:25%; }
.group > *:nth-child(6) * { width:100%; margin-top:25%; }
.group > *:nth-child(7) * { width:100%; height:100%; }
</style>
</head>
<body>
<div class="group">
<div><input type="image" src="../resources/circles-landscape.png"></div>
<div><input type="image" src="../resources/circles-landscape.png"></div>
<div><input type="image" src="../resources/circles-landscape.png"></div>
<div><input type="image" src="../resources/circles-landscape.png"></div>
<div><input type="image" src="../resources/circles-landscape.png"></div>
<div><input type="image" src="../resources/circles-landscape.png"></div>
<div><input type="image" src="../resources/circles-landscape.png"></div>
</div>
</body>
</html>