Re: [csswg-drafts] [css-sizing-4] The priority of different minimum and maximum sizes (#7461)

Hi Dave,
Thanks for the swift reply!

> 1. Explicit min-size beats automatic min-size, but auto min-size beats explicit max-size, which is why all engines say 200px. I think min beating max comes all the way from CSS2, due to the ordering of steps 2 and 3 in https://drafts.csswg.org/css2/#min-max-widths. Maybe something in css-sizing-3 reorganizes or restates that, but I didn't see it at a quick glance.

Thanks! Now I understand it:)

In https://drafts.csswg.org/css-sizing-4/#aspect-ratio-minimum, it says:
> In order to avoid unintentional overflow, the [automatic minimum size](https://drafts.csswg.org/css-sizing-3/#automatic-minimum-size) in the [ratio-dependent axis](https://drafts.csswg.org/css-sizing-4/#ratio-dependent-axis) of a box with a [preferred aspect ratio](https://drafts.csswg.org/css-sizing-4/#preferred-aspect-ratio) that is neither a [replaced element](https://drafts.csswg.org/css-display-3/#replaced-element) nor a [scroll container](https://drafts.csswg.org/css-overflow-3/#scroll-container) is **its [min-content size](https://drafts.csswg.org/css-sizing-3/#min-content) capped by its [maximum size](https://drafts.csswg.org/css-sizing-3/#max-width)**.

For the case 1,  if the min-content(200px) is capped by the maximum size(30px), so the auto min-size is 30px. Maybe we need to reword a little bit here?



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


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

Received on Wednesday, 6 July 2022 19:04:17 UTC