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

Re: [csswg-drafts] [css-grid] aspect ratio units needed

From: Daniel Tonon via GitHub <sysbot+gh@w3.org>
Date: Thu, 01 Nov 2018 12:08:11 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-435021112-1541074090-sysbot+gh@w3.org>
To everyone saying that they want `%w` and `%h` units:

The new unit is being locked down to CSS Grid like the `fr` unit is.

`%w` and `%h`, though awesome and I *really* want them myself, opens up huge cans of worms like **"I want to use `%w` and `%h` to set font size!"** Which (though so totally would be awesome) is about the biggest can of worms you can possibly open!

The bigger the can of worms that gets opened the longer it takes for the new CSS to land in browsers.

As for those wondering why https://github.com/w3c/csswg-drafts/issues/333 is still open, they are different issues.

#333 is meant to be focused on adding a new `aspect-ratio` property that can be used more generically across CSS. This issue is focused on adding a CSS Grid only `tr` unit so that grid template rows and columns can be sized based on an aspect ratio.

It's not one or the other, they are planning on adding _both_ features to CSS.

-- 
GitHub Notification of comment by Dan503
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1173#issuecomment-435021112 using your GitHub account
Received on Thursday, 1 November 2018 12:08:13 UTC

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