In #11243 we ended up resolving to:
With that context, I'm opening this issue to focus on one specific sub-point of the syntax debate: how do we trigger masonry layout?
The three proposals so far are:
- Use a new
display value. Adopted but needs name bikeshedding, see below.
Use display: grid + grid-template-rows/columns: collapse.
- Use
display: grid + item-pack: collapse (allowing it to show up in the item-flow shorthand as .e.g. item-flow: row collapse).
Now that item-flow has been adopted, nobody is advocating for the grid-template-rows/columns option. But people wanted some time to absorb the new item-flow situation before deciding. See https://www.w3.org/TR/css-grid-3/#flow-control
New ideas are also welcome.
UPDATE: The CSSWG resolved to use the display property together with a value that includes the word grid. Currently looking for proposals on what that name should be. It could be grid-something, something-grid, or grid something/something grid (two keywords). SEE THIS NAMING POLL.
Names proposed so far include:
collapsed-grid or grid collapse
grid-stack or stacked-grid
grid-pack or packed-grid or grid pack
compact-grid or compact grid
grid-masonry or masonry-grid
grid-flex or flex-grid
grid single-axis (masonry grid) vs grid dual-axis (normal grid)
grid stack (masonry grid) vs grid grid (normal grid) -- or likewise with another keyword
staggered-grid or grid staggered
uneven-grid
semi-grid
lane-grid or grid-lanes
axial-grid
In #11243 we ended up resolving to:
grid-*properties for templating and explicit placement.item-flowproposal (in principle) for flow control. See [css-flexbox][css-grid] Unifying grid-auto-flow and flex-flow #11480With that context, I'm opening this issue to focus on one specific sub-point of the syntax debate: how do we trigger masonry layout?
The three proposals so far are:
displayvalue. Adopted but needs name bikeshedding, see below.Usedisplay: grid+grid-template-rows/columns: collapse.display: grid+item-pack: collapse(allowing it to show up in theitem-flowshorthand as .e.g.item-flow: row collapse).Now that
item-flowhas been adopted, nobody is advocating for thegrid-template-rows/columnsoption. But people wanted some time to absorb the newitem-flowsituation before deciding. See https://www.w3.org/TR/css-grid-3/#flow-controlNew ideas are also welcome.
UPDATE: The CSSWG resolved to use the
displayproperty together with a value that includes the wordgrid. Currently looking for proposals on what that name should be. It could begrid-something,something-grid, orgrid something/something grid(two keywords). SEE THIS NAMING POLL.Names proposed so far include:
collapsed-gridorgrid collapsegrid-stackorstacked-gridgrid-packorpacked-gridorgrid packcompact-gridorcompact gridgrid-masonryormasonry-gridgrid-flexorflex-gridgrid single-axis(masonry grid) vsgrid dual-axis(normal grid)grid stack(masonry grid) vsgrid grid(normal grid) -- or likewise with another keywordstaggered-gridorgrid staggereduneven-gridsemi-gridlane-gridorgrid-lanesaxial-grid