The spec states: "The flex-basis property hereby also gains these new
keywords, as its values are defined by reference to <width>"
So, will this ship include the `flex-basis` property? See also:
https://github.com/browserscore/features/pull/250

Additionally, for browsers that do not support fit-content(), can
`min(max-content, max(min-content, <length-percentage>))` be used as a
polyfill?



Chromestatus <[email protected]> 于2026年3月24日周二 20:58写道:

> *Contact emails*
> [email protected]
>
> *Explainer*
> *No information provided*
>
> *Specification*
> https://drafts.csswg.org/css-sizing-3/#funcdef-width-fit-content
>
> *Summary*
> Implements the fit-content(<length-percentage>) value for width, height,
> min-width, max-width, min-height, and max-height properties as defined by
> the CSS Box Sizing Module Level 3. It resolves as min(max-content,
> max(min-content, <length-percentage>)), clamping an element's size between
> its min-content and max-content while targeting the specified length or
> percentage. This gives developers explicit control over content-based
> sizing without relying on the available space, unlike the fit-content
> keyword which always uses the stretch size as its target.
>
> *Blink component*
> Blink>CSS
> <https://issues.chromium.org/issues?q=customfield1222907:%22Blink%3ECSS%22>
>
> *Web Feature ID*
> fit-content-function <https://webstatus.dev/features/fit-content-function>
>
> *Motivation*
> The fit-content keyword exists but always clamps against the available
> space. When developers need to clamp an element's size between its
> min-content and max-content using a specific length or percentage instead
> of the available space, there is no CSS-native way to express this.
>
> *Initial public proposal*
> https://drafts.csswg.org/css-sizing-3/#funcdef-width-fit-content
>
> *Goals for experimentation*
> None
>
> *Requires code in //chrome?*
> False
>
> *Tracking bug*
> https://issues.chromium.org/issues/40847362
>
> *Estimated milestones*
>
> No milestones specified
>
>
> *Link to entry on the Chrome Platform Status*
> https://chromestatus.com/feature/5173684820115456?gate=4535388490301440
>
> This intent message was generated by Chrome Platform Status
> <https://chromestatus.com>.
>
> --
> You received this message because you are subscribed to the Google Groups
> "blink-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion visit
> https://groups.google.com/a/chromium.org/d/msgid/blink-dev/69c28a65.050a0220.1ae4a.0ca4.GAE%40google.com
> <https://groups.google.com/a/chromium.org/d/msgid/blink-dev/69c28a65.050a0220.1ae4a.0ca4.GAE%40google.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CA%2B-d5Zqo0QvQ9r97Dy5eEtD6W36tujCYpdY3_PbJa5ZvVECWEg%40mail.gmail.com.

Reply via email to