2 <title>contain:inline-size and fieldset
</title>
3 <link rel=
"author" title=
"Morten Stenshorne" href=
"mailto:mstensho@chromium.org">
4 <link rel=
"help" href=
"https://drafts.csswg.org/css-contain/#contain-property">
5 <link rel=
"help" href=
"https://drafts.csswg.org/css-contain-3/#containment-inline-size">
6 <p>The fieldset below has inline-size containment. It should not make any
7 inline-size room for the blue legend line, but it should fit the hotpink
8 square in the block direction (but not in the inline direction, where it
9 should overflow the right border of the fieldset.
</p>
10 <fieldset style=
"border:20px solid; width:0; min-width:0;">
12 <div style=
"width:200px; height:2px; background:blue;"></div>
14 <div style=
"width:100px; height:100px; background:hotpink;"></div>