W3C home > Mailing lists > Public > www-style@w3.org > March 2013

Re: [css-flexbox] Making percentage margins/padding consistent with Grid

From: Daniel Holbert <dholbert@mozilla.com>
Date: Wed, 06 Mar 2013 15:23:59 -0800
Message-ID: <5137D00F.1060201@mozilla.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>, www-style list <www-style@w3.org>
To be clear -- you're talking about percentage margins and padding on
flex *items*, right?  (not on a flex container)

If so -- then, "the height of the containing block" would mean "the
height of the flex container" in this context, correct? (since flex
containers form a containing block for their contents.)


On 03/06/2013 02:10 PM, Tab Atkins Jr. wrote:
> Right now, Flexbox treats vertical percentage margins and paddings
> same as block layout - they're resolved relative to the width of the
> containing block.  Grid instead makes vertical margin/padding resolve
> their percentages against the height of the containing block.
> I think this is a reasonable behavior, and would like to copy it into
> Flexbox.  (In general, I'd like Grid and Flexbox to be identical in
> these kinds of details unless there's a great reason for the
> difference.)
> Thoughts?
> ~TJ and fantasai
Received on Wednesday, 6 March 2013 23:24:27 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:27 UTC