blob: 6c638b568f480afa4f194d27bdfbf6a656918e26 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<title>object-fit on SVG images that load slowly</title>
<style type="text/css">
img, embed, object, input, canvas, video {
height: 72px;
width: 144px;
margin: 2px 10px;
border: 1px solid black;
background-color: gray;
}
.group { object-fit: contain; }
.group > *:nth-child(1) { object-fit: fill; }
.group > *:nth-child(2) { object-fit: contain; }
.group > *:nth-child(3) { object-fit: cover; }
.group > *:nth-child(4) { object-fit: none; }
.group > *:nth-child(5) { object-fit: scale-down; }
.group > *:nth-child(6) { object-fit: inherit; }
.group > *:nth-child(7) { }
</style>
</head>
<body>
<div class="group">
<img id="hest" src="resources/delayedCircle.php" type="image/svg+xml">
<img src="resources/delayedCircle.php" type="image/svg+xml">
<img src="resources/delayedCircle.php" type="image/svg+xml">
<img src="resources/delayedCircle.php" type="image/svg+xml">
<img src="resources/delayedCircle.php" type="image/svg+xml">
<img src="resources/delayedCircle.php" type="image/svg+xml">
<img src="resources/delayedCircle.php" type="image/svg+xml">
</div>
<script>
document.body.offsetLeft; // Lay out now!
</script>
</body>
</html>