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

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

From: Karim Sabbagh via GitHub <sysbot+gh@w3.org>
Date: Thu, 04 Jan 2018 12:41:25 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-355272741-1515069684-sysbot+gh@w3.org>
I think it makes more sense that % padding and margins should resolve to their own axis. If that was implemented in non-flex elements, that would have made it easier to center items vertically (margin-top: 50%; transform: translatey(-50%)  ) which is very useful when you don't know the height of the element.
And in the case of flex and grid, I don't see why it should be otherwise. 
My vote would go for option 3: Align with gecko and edge - both flexbox and grid are symmetric (resolve all % in their own axis)

GitHub Notification of comment by beytek
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2085#issuecomment-355272741 using your GitHub account
Received on Thursday, 4 January 2018 12:41:28 UTC

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