RE: [css-grid] Reduced Subgrid Proposal

> fantasai's message is the long and complete proposal, so for the purpose of
> easier comprehension, here's the tl;dr:
> 
> display:subgrid is very similar to display:contents - the elements'
> children position/size/etc in the *parent* grid instead.  Except:
> 
> * they get positioned "as a group" - they can only fill the grid cells that the
> subgrid does (which is predefined - subgrids need an explicit grid span in
> both dimensions)
> * the subgrid itself does draw (so you can have margin/border/padding
> around the group)
> * when sizing, the subgrid itself contributes - it acts like an empty grid item in
> the parent grid, and its children that touch one of its edges act like they have
> extra margin equal to the m/b/p of the subgrid on that edge, so they'll
> *look* like they're visually aligned
> *within* the subgrid by default (despite laying out in the parent grid instead).

With the addition of "repeat this group of tracks as a block" that might work out. Still not confident about it, though, because last I know you could only auto-repeat things that were fixed-sized. Since this change is not specced yet, I would just want to get a few examples of how you would use this track-group repeat. Is this a auto-row feature?

I would also want more details about how this proposal handles position:absolute items. Since all elements are laid out in the main grid, my understanding is that if you parent subgrid has position:relative, this does not affect you in any way; is that correct? Is there a way you could get an absolutely positioned layer on top of your subgrid (that would be inside the subgrid) without giving up on auto layout in the subgrid? That might be a broader grid issue though, didn't think this through entirely.

Other than that, I think this is fine by me. Didn't ask our dev team, so this is just my own personal opinion.

Received on Monday, 18 April 2016 17:22:56 UTC