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
Browser Support Releases
| Browser | Type | Version | Release 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 Key | Area | Core-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) |