W3C home > Mailing lists > Public > www-style@w3.org > August 2012

Re: [css3-grid-layout] grid-descendant grid items

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 9 Aug 2012 10:03:14 -0700
Message-ID: <CAAWBYDDZsrVC_6oCkM03mHzYTg2L0R6jFDebsRFaBXxTEY6czQ@mail.gmail.com>
To: fantasai <fantasai.lists@inkedblade.net>
Cc: "www-style@w3.org" <www-style@w3.org>
On Thu, Aug 9, 2012 at 10:01 AM, fantasai <fantasai.lists@inkedblade.net> wrote:
> On 08/09/2012 09:25 AM, Tab Atkins Jr. wrote:
>> I don't see quite how this works.  Do you assume that the subgrid's
>> margin/border/padding are subtracted from the sizes of the appropriate
>> grid areas inside of itself?
>
> Yeah, sorry, I forgot that bit. You treat the sub-items as if they had
> an extra amount of margin equal to the grid-item's border/padding/margin.
>
>
>> If so, what happens when the sum of this is larger than the size of
>> one of the grid areas that its child wants to participate in?
>
> You get bad layout, exactly as if the sub-item's margins were too large.

Okay, this makes sense.

~TJ
Received on Thursday, 9 August 2012 17:04:07 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:58 GMT