Intent to Prototype: CSS shrink-to-fit container

40 views
Skip to first unread message

TAMURA, Kent

unread,
1:08 AM (4 hours ago) 1:08 AM
to blink-dev
Contact emails
tk...@chromium.orgikilp...@chromium.org

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

Specification
No information provided

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.

Blink component
Blink>Layout

Web Feature ID
Missing feature

Motivation

Initial public proposal
https://github.com/w3c/csswg-drafts/issues/191

Goals for experimentation
None

Requires code in //chrome?
False

Tracking bug
https://issues.chromium.org/issues/537526308

Estimated milestones

No milestones specified



Link to entry on the Chrome Platform Status
https://chromestatus.com/feature/5196081949442048?gate=5127523651420160

--
TAMURA Kent
Software Engineer, Google


Reply all
Reply to author
Forward
0 new messages