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

Re: [csswg-drafts] [css-values-4] Way to set height, max-height, min-height relative to width (#5461)

From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
Date: Fri, 21 Aug 2020 15:48:26 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-678360799-1598024904-sysbot+gh@w3.org>
Unfortunately, units referring to an element's width like that lead to circularities in the layout system pretty quickly.

Fortunately, we now have the [`aspect-ratio` property](https://drafts.csswg.org/css-sizing-4/#ratios), which is being implemented *right now* in browsers. ^_^

I'll go ahead and close this, since `aspect-ratio` does what you're asking for.

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 21 August 2020 15:48:27 UTC

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