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: Phil McCloghry-Laing via GitHub <sysbot+gh@w3.org>
Date: Thu, 21 Dec 2017 03:23:24 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-353248241-1513826604-sysbot+gh@w3.org>
I'm in agreement with @marcvangend.

It seems more useful to be able to define padding and margins that are percentages of the same value in both directions. Having vertical and horizontal padding in proportion with each other seems like something that would be used all the time, whether it's defining gutters with margins or creating "cards" with consistent padding.

I also _love_ the idea of being able define what a percentage is relative to by specifying something like `%w` `%h`, although I wonder if it might be a better idea to follow the pattern of [viewport relative units](https://www.w3.org/TR/css3-values/#viewport-relative-lengths), something like `w`, `h`, `min`, `max`?

-- 
GitHub Notification of comment by pmccloghrylaing
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2085#issuecomment-353248241 using your GitHub account
Received on Thursday, 21 December 2017 03:23:28 UTC

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