Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!doctype html>
<meta charset="utf8">
<title>CSS contain-intrinsic-size: div with fit-content width</title>
<link rel="author" title="Vladimir Levin" href="mailto:vmpstr@chromium.org">
<link rel="match" href="contain-intrinsic-size-019-ref.html">
<meta name="assert" content="div is sized to intrinsic-width when width is fit-content">
<style>
#target {
background: lightblue;
contain-intrinsic-size: 111px 222px;
contain: size;
width: fit-content;
}
</style>
<div id=target></div>