Baseline Widely Layout

fit-content

The fit-content CSS keyword expands a box as needed to fit its contents until the maximum size is reached, preserving the content's preferred aspect ratio.

Baseline Status
Widely Available
Since 2021-11-02
First Core Launch
Chrome 46
2015-10-13
Core-3 Stability
2,212d (6.1y)
Last: Firefox (2021-11-02)
BCD Keys Mapped
6
Group: Layout

Browser Support Timeline

Chrome v46 (2015-10-13) Chrome Android v46 (2015-10-14) Safari v11 (2017-09-19) Safari on iOS v11 (2017-09-19) Edge v79 (2020-01-15) Firefox v94 (2021-11-02) Firefox for Android v94 (2021-11-02)
Green dot marks the first browser release (2015-10-13); blue dots show subsequent browser launches (+2212d total span).

Browser Support Releases

BrowserTypeVersionRelease Date
Chrome desktop 46 2015-10-13
Chrome Android mobile 46 2015-10-14
Safari desktop 11 2017-09-19
Safari on iOS mobile 11 2017-09-19
Edge desktop 79 2020-01-15
Firefox desktop 94 2021-11-02
Firefox for Android mobile 94 2021-11-02

Constituent MDN BCD Keys (Sample)

BCD KeyAreaCore-3 TTA
css.properties.height.fit-content CSS 2,212d (6.1y)
css.properties.max-height.fit-content CSS 2,212d (6.1y)
css.properties.max-width.fit-content CSS 2,212d (6.1y)
css.properties.min-height.fit-content CSS 2,212d (6.1y)
css.properties.min-width.fit-content CSS 2,212d (6.1y)
css.properties.width.fit-content CSS 2,212d (6.1y)