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: Oriol Brufau via GitHub <sysbot+gh@w3.org>
Date: Sat, 14 Nov 2020 02:50:57 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-727132701-1605322256-sysbot+gh@w3.org>
Yes, in that other case it doesn't have a preferred aspect ratio, it's not replaced, it's not a table, etc. Then `normal` behaves as `stretch` indeed.

> applying an aspect-ratio to a non-replaced element, doesn't make it replaced

Doesn't make it completely replaced, but https://drafts.csswg.org/css-sizing-4/#aspect-ratio-automatic says

> When a box has a preferred aspect ratio, its automatic sizes are calculated **the same as for a replaced element** with an intrinsic aspect ratio and no intrinsic dimension in that axis

-- 
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5713#issuecomment-727132701 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 02:51:00 UTC

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