Re: [csswg-drafts] [css-sizing] need to be clear about inputs to computation of min-content, max-content, and fit-content sizes (#2890)

The inputs I have been using when implementing this is a `SizingConstraint` and a `ContainingBlockLength` **in each axis** where:

`enum SizingConstraint = MinContent | MaxContent | FitContent(px_available_space) | Exact(px_size_override)`
and
`enum ContainingBlockLength = Some(px_length) | None`

The `Exact` sizing constraint is used in cases where the size of a child in one axis has already been determined by a previous step in the parent's layout algorithm. For example, it would be used for the main axis of a Flexbox item when resolving the cross-sizer of that item once it's main size has been resolved.

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


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

Received on Tuesday, 9 July 2024 04:17:24 UTC