W3C home > Mailing lists > Public > public-css-archive@w3.org > February 2018

Re: [csswg-drafts] [css-grid][css-sizing] Aspect Ratio

From: Ewan Marshall via GitHub <sysbot+gh@w3.org>
Date: Mon, 19 Feb 2018 12:20:14 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-366676826-1519042813-sysbot+gh@w3.org>
How about a simple ew relative unit added that is percentage of element width?

Then we can just `height: 100ew;` to make something square or `height: 56.25ew` for a 16:9 box?

Obviously with an addendum that ew is ignored on the width property. This way, it can apply to all elements as they already work?

GitHub Notification of comment by ewanm89
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/333#issuecomment-366676826 using your GitHub account
Received on Monday, 19 February 2018 12:20:48 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:24 UTC