Intent to prototype: fit-content() function

Skip to first unread message

Boris Chiou

Mar 8, 2021, 6:17:06 PM3/8/21
to dev-platform

[css-sizing-3] introduces a fit-content(<length-percentage>) value, that is
a new value similar to fit-content, except taking an argument instead of
using the available width. This value is used in width/min-width/max-width
(if the inline axis is horizontal). Gecko supports the -moz-fit-content
keyword, but before un-prefixing it, I think we should support
fit-content() first. The spec should be stable enough and the related spec
issue has been resolved (

Note: this is different from the fit-content() in grid layout.


*DevTools bug: Not open yet.*


*Platform coverage*: All.


*Other browsers*: No other browsers support this now.

*web-platform-tests*: There are some wpts related to parsing fit-content()
already, but we still have to add more reftests for fit-content(). All wpts
should be in:
Reply all
Reply to author
0 new messages