Skip to content

[css-grid-3] Masonry Switch Syntax #12022

@fantasai

Description

@fantasai

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    Tuesday Morning

    Status

    Thursday Morning

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions