---
id: "contain-size"
kind: "web-feature"
canonical: "https://timetostable.com/feature/contain-size"
baseline: "high"
bcd_version: "8.1.11"
web_features_version: "3.48.0"
---

# Size containment (`contain-size`)

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.

- **Group**: Containment
- **Baseline**: Widely Available
- **Newly Available Date**: 2022-03-14
- **Widely Available Date**: 2024-09-14
- **Specification**: https://drafts.csswg.org/css-contain-2/#containment-size
- **Constituent BCD keys**: 1

## Browser Support Timeline

| Browser | Version | Release Date |
| --- | --- | --- |
| Chrome | 52 | 2016-07-20 |
| Chrome Android | 52 | 2016-07-27 |
| Firefox | 69 | 2019-09-03 |
| Edge | 79 | 2020-01-15 |
| Firefox for Android | 79 | 2020-07-28 |
| Safari | 15.4 | 2022-03-14 |
| Safari on iOS | 15.4 | 2022-03-14 |

