Usage
held is false the box is an ordinary Box and remembers how large its content makes it, observed on its own window.held turns true it keeps that inline and block size. The size is written before the next paint, so no frame shows the collapsed box.held turns false, or the box unmounts, the size is released and the box follows its content again.as picks the tag and ref matches it. It paints nothing: the surface, border and radius come from the class you pass.
Put max-inline-size: 100% on the held box (or an ancestor) when it can be wider than its container. The held inline size is a plain length and does not shrink with the viewport on its own.