<!doctype html>
<meta charset="utf8">
<title>CSS contain-intrinsic-size: width is max-content</title>
<link rel="author" title="Vladimir Levin" href="mailto:[email protected]">
<link rel="help" href="https://drafts.csswg.org/css-sizing-4/#intrinsic-size-override">
<link rel="match" href="contain-intrinsic-size-004-ref.html">
<meta name="assert" content="div is sized to intrinsic-width if width is max-content">
<style>
#target {
background: lightblue;
contain-intrinsic-size: 111px 222px;
contain: size;
width: max-content;
}
</style>
<div id=target></div>