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).

Received on Thursday, 14 April 2016 22:56:09 UTC