W3C home > Mailing lists > Public > public-css-archive@w3.org > January 2021

Re: [csswg-drafts] [css-sizing-4] Expected size of replaced element with aspect-ratio but width/height auto (#5721)

From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
Date: Thu, 14 Jan 2021 22:54:39 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-760528076-1610664878-sysbot+gh@w3.org>
This is defined in <https://drafts.csswg.org/css-sizing-4/#aspect-ratio-automatic> - all boxes respect the preferred aspect-ratio, acting like they have a size in the ratio-determining axis and none in the ratio-dependent axis. So that img should be square, regardless of the natural dimensions.

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 14 January 2021 22:54:41 UTC

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