W3C home > Mailing lists > Public > public-css-archive@w3.org > December 2017

Re: [csswg-drafts] [css-flexbox][css-grid] Choose a single option for resolving padding and margin percent values of grid/flex items

From: Stanislav Lashmanov via GitHub <sysbot+gh@w3.org>
Date: Wed, 20 Dec 2017 16:32:57 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-353112846-1513787576-sysbot+gh@w3.org>
Keep it simple for the CSS newcomers and use axis relativity. It's a pain to figure that out for the first time when it doesn't work as expected. Something like `box-fit` (object fit for block-level elements) could be implemented to deal with aspect ratio issue. For those who want flexibility I think %w and %h is a great idea. Not only for Flexbox and Grid, but for the CSS units overall. That behavior would still let you use container width to do an aspect ratio hack. 

-- 
GitHub Notification of comment by CyberAP
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2085#issuecomment-353112846 using your GitHub account
Received on Wednesday, 20 December 2017 16:33:04 UTC

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