W3C home > Mailing lists > Public > www-style@w3.org > April 2016

Re: [css-grid] Reduced Subgrid Proposal

From: fantasai <fantasai.lists@inkedblade.net>
Date: Fri, 15 Apr 2016 10:12:08 -0400
To: Sergio Villar Senin <svillar@igalia.com>, www-style@w3.org
Message-ID: <5710F6B8.90901@inkedblade.net>
On 04/15/2016 06:05 AM, Sergio Villar Senin wrote:
> First of all I'm quite happy to see this reduced proposal
>
> On 15/04/16 00:35, fantasai wrote:
>>
>> C. If one of the subgrid's grid items is placed in the
>>     subgrid's first/last track, it is treated as if it
>>     had additional margin on that edge equal to the
>>     subgrid's margin+border+padding on that edge.
>
> As mentioned in our report[1] that might become more complicated if we
> nest subgrids, as any item in the subgrid could be potentially subject
> those those kind of adjustments (not only the ones on the edges).

Right, so when querying the item for its outer size contribution,
you need to stack up the "extra margin" effect as you walk up the
grid tree.

I don't think this should be particularly hard so long as you have
some way of querying where in its parent a particular item is,
placement-wise?

~fantasai
Received on Friday, 15 April 2016 14:12:41 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:09:02 UTC