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

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