Re: [csswg-drafts] [css-flexbox-1] Clarify fit-content behavior when the available space in a given axis is indefinite (#11414)

>When sizing under a [min-content constraint](https://drafts.csswg.org/css-sizing-3/#min-content-constraint), equal to the [min-content size](https://drafts.csswg.org/css-sizing-3/#min-content). Otherwise, equal to the [max-content size](https://drafts.csswg.org/css-sizing-3/#max-content) in that axis.

Just to confirm I understand correctly, the process is:

Treat the flex item as a block-level box in flow layout, where the available space in the *main direction* is determined by the previously calculated *main size*. Since the flex item's cross size is set to `auto`, we use `fit-content` and because the flex container has `height: auto` which does not impose a *min-content constraint* , the `fit-content` will be determined using **max-content** sizing in the **cross direction** — specifically, the [max-content block size](https://drafts.csswg.org/css-sizing-3/#max-content-block-size) in case the cross direction is block.

Is that correct?

-- 
GitHub Notification of comment by gitspeaks
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11414#issuecomment-2569802227 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 3 January 2025 20:54:03 UTC