W3C home > Mailing lists > Public > public-css-archive@w3.org > June 2020

Re: [csswg-drafts] [css-sizing-4] Should aspect-ratio affect the intrinsic size? (#5032)

From: fantasai via GitHub <sysbot+gh@w3.org>
Date: Mon, 15 Jun 2020 18:19:54 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-644292343-1592245193-sysbot+gh@w3.org>
`overflow` does not change the interpretation of `max-content`, so the two of them are necessarily the same.

Going from the notes in https://github.com/w3c/csswg-drafts/issues/5032#issuecomment-639874263 ...

If we had `width: max-content; height: 100px; aspect-ratio: 1/1`, `max-content` would resolve to 100px, because `max-content` is the upper bound of the shrink-to-fit (fit-content) width, and setting the `width` value aside because we're calculating it, the width range of shrink-to-fit is 100px to 100px here. So `min-width: max-content; height: 100px; aspect-ratio: 1/1` would have to be the same: both the `width` (which is `auto`) and the `min-width` (which is `max-content`) resolve based on the aspect ratio.

I think that's the correct logic? We can consider some other logic, but, afaict that's what's outlined in https://github.com/w3c/csswg-drafts/issues/5032#issuecomment-639874263

GitHub Notification of comment by fantasai
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5032#issuecomment-644292343 using your GitHub account
Received on Monday, 15 June 2020 18:19:57 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:09 UTC