Source code
Revision control
Copy as Markdown
Other Tools
<!doctype html>
<meta charset="utf8">
<title>CSS contain-intrinsic-size: div with max-content parent</title>
<link rel="author" title="Vladimir Levin" href="mailto:vmpstr@chromium.org">
<style>
#border {
width: max-content;
border: 1px solid black;
}
#target {
background: lightblue;
width: 111px;
height: 222px;
}
</style>
<div id=border>
<div id=target></div>
</div>