- From: Benoît Rouleau via GitHub <sysbot+gh@w3.org>
- Date: Tue, 13 May 2025 00:41:49 +0000
- To: public-css-archive@w3.org
> If you have min and max constraints you need to specify which wins. From the "however" in (2) I can infer that the min wins over the max. But I can't infer what happens if the min from (2) conflicts with the max from (1). Also I don't understand what min you want in (2). When you say "I assume" you mean you don't know either? Ok, sorry, I should have phrased it better. I want the card's height to be `clamp(min-content, calc(100vh - 20px), max-content)`, where - I understand `min-content` to be the header's height (since it's not allowed to shrink) + the body's `min-height` + its padding (since it's allowed to shrink and has `flex-basis: 0%` and `overflow-y: auto`) + the footer's height (since it's also not allowed to shrink), so ~200px. - I understand `max-content` to be the same thing except that for the body, it should be the whole height of its scrollable area's content, so ~415px. > Yes, see https://github.com/w3c/csswg-drafts/issues/6457#issuecomment-908733927 Thank you, that's good news. I will try to find issues in the browsers' bug trackers, and if I can't find them, create them. :) -- GitHub Notification of comment by benface Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12182#issuecomment-2874671069 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 13 May 2025 00:41:50 UTC