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

Re: [csswg-drafts] [css-grid] Note implies losing an aspect-ratio when it shouldn't? (#5713)

From: Ian Kilpatrick via GitHub <sysbot+gh@w3.org>
Date: Sat, 14 Nov 2020 00:32:43 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-727099766-1605313962-sysbot+gh@w3.org>
> But with (2), how would you treat an element with aspect-ratio but stretch alignment in both axes?

Both "win" it gets distorted.

Here both the inline-axis, and block-axis are stretched. So the default axis "wins" resulting in the image being distorted. The "full" priority list for (2) would be:
 - intrinsic size.
 - transferred (by aspect-ratio) stretch alignment.
 - stretch alignment.
 - transferred (by aspect-ratio) definite size.
 - definite size.


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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Saturday, 14 November 2020 00:32:47 UTC

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