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

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