Re: [css-grid] Reduced Subgrid Proposal

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