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

Actually there is one limitation in using `from-ratio` compared to an `ar` unit.

`ar` is pretty much self contained.

`from-ratio` on the other hand needs the `aspect-ratio` property to be set which comes with a bunch of its own effects.

If you wanted to add aspect-ratio sizing to padding/border/margin but didn't want the box itself to be sized using aspect-ratio, that would be much more difficult (maybe even impossible) to achieve using `from-ratio`. It would be easily achievable using an `ar` unit though.

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

Received on Monday, 22 October 2018 18:43:03 UTC