Re: [csswg-drafts] [css-sizing] Cyclical definition of min-content size (#12081)

> The min-content size of a box in each axis is the size it would have if it was a float

That's no real definition. Some layouts have a real definition, e.g. https://drafts.csswg.org/css-grid/#intrinsic-sizes. Some layouts don't have a proper definition for intrinsic sizes, or don't have a proper spec at all.

> CSS2 10.3.5 says "min(max(preferred minimum width, available width), preferred width)."

This is obsolete terminology. The "preferred minimum width" is actually the min-content size, and the "preferred width" is the max-content size.

> but I'd like to believe this shouldn't be necessary and it should be possible to set preferred width-only in a single element.

I'm not sure I understand what you want, maybe `width: calc(0% + 300px)`?

But this seems unrelated to the cyclic spec definitions. Better keep spec topics here, and leave questions about which code achieves what you want for stackoverflow.

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


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

Received on Tuesday, 15 April 2025 20:49:50 UTC