← Back to release summary

CSS shrink-to-fit container

Category
CSS
Type
New or changed feature
Status
Proposed (Chrome Proposed)
Intent stage
None

Summary

Shrinks container width to match the maximum line length of its wrapped content. While keywords like fit-content leave empty space when text wraps, this CSS property tightly fits the container around the actual rendered layout to eliminate awkward trailing gaps.

Standards & signals

Ecosystem

Explainers: https://github.com/explainers-by-googlers/css-shrink-to-fit/blob/main/README.md

View on chromestatus.com