Re: [csswg-drafts] [css-sizing] How to handle min-content being bigger than max-content? (#12076)

For what it's worth, my intuition is that the `min-content` calculation in this examples is incorrect.  The idea that breaking at every possible break point produces the minimum is a heuristic that's not always correct -- and it's wrong in this case, where having fewer breaks can lead to a smaller width.  (This does assume that the layout algorithm can correctly produce that set of breaks given the input width, which I think it should, but I'd be surprised if all implementations were bug free on this point!)

(On the other hand, I think the `max-content` calculation is probably correct as-is, because even though there are break configurations that produce a wider width, the layout algorithm shouldn't actually produce those configurations of breaks when given that width as input.)

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


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

Received on Friday, 20 June 2025 17:24:53 UTC