<!DOCTYPE html>
<html>
<head>
<title>CSS Test: Basic cases of block-size with max-content and min-content</title>
<meta charset="utf-8">
<link rel="author" title="Boris Chiou" href="mailto:[email protected]">
<link rel="help" href="https://drafts.csswg.org/css-sizing/#sizing-values">
<link rel="match" href="block-size-with-min-or-max-content-1-ref.html">
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<link rel="stylesheet" type="text/css" href="support/min-content-max-content.css">
<style>
html,body {
margin: 0;
}
.container {
inline-size: max-content;
height: 50px;
border: 1px solid black;
font-family: Ahem;
font-size: 15px;
line-height: 21px;
}
.container > * {
display: inline-block;
border: 1px solid blue;
}
.container-vertical {
width: 50px;
border: 1px solid black;
font-family: Ahem;
font-size: 15px;
line-height: 21px;
}
.container-vertical > * {
writing-mode: vertical-lr;
border: 1px solid blue;
}
</style>
</head>
<body>
<div class="container">
<div class="block-min-content">min<br>in the box</div>
<div class="block-max-content">max<br>in the box</div>
</div>
<div class="container-vertical">
<div class="block-min-content">min<br>in the box</div>
<div class="block-max-content">max<br>in the box</div>
</div>
</body>
</html>