web-feature: Inline-size containment

baseline logo Widely available

The contain: inline-size CSS declaration prevents the element’s inline dimension from being set by the element’s contents. This permits the browser to avoid slower layout calculations.