web-feature: Size containment

baseline logo Widely available

The contain: size CSS declaration sets an element’s dimensions exclusively by its height and width properties, ignoring its contents and descendants. This permits the browser to avoid slower layout calculations.