Files
obscura/render-repros/max-height-replaced.html
2026-07-23 19:23:31 +00:00

40 lines
869 B
HTML

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>max height replaced element</title>
<style>
html, body { margin: 0; }
#card {
box-sizing: border-box;
display: flex;
flex-direction: column;
width: 394px;
height: 608px;
padding: 32px;
overflow: hidden;
background: #f5f6f7;
}
#media {
align-self: flex-start;
width: 100%;
margin: 32px 0 0;
}
#image {
display: block;
width: 100%;
height: auto;
max-height: 200px;
object-fit: cover;
}
</style>
</head>
<body>
<div id="card">
<figure id="media">
<img id="image" alt="" src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='648' height='440'%3E%3Crect width='648' height='440' fill='%231971c2'/%3E%3C/svg%3E">
</figure>
</div>
</body>
</html>