Re: [csswg-drafts] [css-sizing-4] aspect-ratio: minimum/maximum instead of preferred (#5463)

Here is the example:
Desired result:
https://codepen.io/ferenci84/pen/zYqopPw

What would happen using the recommended settings:
https://codepen.io/ferenci84/pen/jOqymYB

In the first example the auto is the only keyword for the height that correctly set the height so that it won't be larger than the image height, only if other images are taller in the same row. In the draft specification there are at least two things that prevent this setup with aspect ratio:
1. If I set aspect-ratio, it overwrites the auto value for width/height
2.The from-ratio keyword usable with min/max-width/height that were available in the [old draft](https://drafts.csswg.org/date/2019-01-04T12:56:23/css-sizing-4/#from-ratio) was removed.

Is there an other way to get the same effect?

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


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

Received on Sunday, 23 August 2020 17:42:18 UTC