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

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 UTC