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

> Better keep spec topics here, and leave questions about which code achieves what you want for stackoverflow.

Okay, sounds good - the only reason I added it was sometimes posting requests for clarification without providing usage context gets push back from project owners.

> Some layouts don't have a proper definition for intrinsic sizes, or don't have a proper spec at all.

So, in summary, it's not defined? In that case, stepping back, I would like to propose a method to set the preferred size for a block element without affecting the min-content size -- however, without a more complete spec for min-content size it's not clear if such a method already exists or not.

> `width: calc(0% + 300px)`

I'm not entirely sure how this computes - it indeed makes the min-size 2px, but the preferred size appears to also be 2px and not 300px. TBH I would have expected this to result in a value with a floor of 300px...

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


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

Received on Wednesday, 16 April 2025 01:58:26 UTC