---
title: "Help us choose the final syntax for Masonry in CSS"
description: "WebKit argues that masonry-style packed layout should be specified as part of CSS Grid (\"Just Use Grid\", e.g. grid-template-rows: collapse) rather than as a separate display: masonry mode with its own masonry-* properties, as the Chrome team and Rachel Andrew propose."
url: "https://swe.quest/articles/help-us-choose-the-final-syntax-for-masonry-in-css-49421042d3732dc4"
canonical: "https://webkit.org/blog/16026/css-masonry-syntax/"
source: "WebKit"
published: "2024-10-21"
difficulty: "medium"
kind: "Opinion"
reading_minutes: 31
tags: ["css","browsers","language-design"]
---

# Help us choose the final syntax for Masonry in CSS

A post on [WebKit](https://swe.quest/sources/webkit.md), published 2024-10-21, 31 min read, Opinion. Original: [https://webkit.org/blog/16026/css-masonry-syntax/](https://webkit.org/blog/16026/css-masonry-syntax/)

## Summary

WebKit argues that masonry-style packed layout should be specified as part of CSS Grid ("Just Use Grid", e.g. grid-template-rows: collapse) rather than as a separate display: masonry mode with its own masonry-\* properties, as the Chrome team and Rachel Andrew propose. Performance concerns about combining masonry with full Grid track sizing have been resolved, and the CSSWG has adopted mixed track sizing in the Grid Level 3 First Public Working Draft. The remaining dispute is purely syntactic. WebKit cites Bert Bos's design principles (learnability, minimum redundancy, repurposing) and shows side-by-side code where a separate syntax duplicates nearly every grid property and forces developers to switch mental models at breakpoints. The debate was later settled under the name CSS Grid Lanes.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [CSS](https://swe.quest/tags/css.md) (Web & mobile)
- [Browsers](https://swe.quest/tags/browsers.md) (Web & mobile)
- [Language design](https://swe.quest/tags/language-design.md) (Compilers & runtimes)

## Prerequisites

- CSS Grid layout ([easy posts on CSS](https://swe.quest/tags/css.md?difficulty=easy))
- CSS Flexbox ([easy posts on CSS](https://swe.quest/tags/css.md?difficulty=easy))

## Keywords

CSS Masonry, CSS Grid Layout Level 3, CSS Grid Lanes, CSSWG, WebKit, Safari Technology Preview

## Related posts

- [Help us invent CSS Grid Level 3, aka “Masonry” layout](https://swe.quest/articles/help-us-invent-css-grid-level-3-aka-masonry-layout-ed399042099ed6d0.md): WebKit · 2024-04-19 · Medium · 19 min read · CSS, Browsers, Frontend
  CSS Grid Level 3, often called masonry or waterfall layout, adds \`grid-template-rows: masonry\` so content packs into columns without rows, with no JavaScript and no cropping.
- [When will CSS Grid Lanes arrive? How long until we can use it?](https://swe.quest/articles/when-will-css-grid-lanes-arrive-how-long-until-we-can-use-it-0440c8888ab4100c.md): WebKit · 2026-01-22 · Medium · 12 min read · CSS, Browsers, Frontend
  CSS Grid Lanes, the masonry-style layout from CSS Grid Level 3, ships with its finalized \`display: grid-lanes\` syntax in Safari Technology Preview.
- [Item Flow – Part 2: next steps for Masonry](https://swe.quest/articles/item-flow-part-2-next-steps-for-masonry-6b3129fc4dea058d.md): WebKit · 2025-08-08 · Medium · 10 min read · CSS, Frontend, Browsers
  WebKit argues that masonry-style layouts should be treated as a variant of CSS Grid.
- [Introducing CSS Grid Lanes](https://swe.quest/articles/introducing-css-grid-lanes-2d3c264610a9740d.md): WebKit · 2025-12-19 · Medium · 8 min read · CSS, Browsers, Frontend, Accessibility
  CSS Grid Lanes (\`display: grid-lanes\`) brings native masonry layouts to the web, available in Safari Technology Preview 234.
- [CSS Grid: A helpful mental model and the power of grid lines](https://swe.quest/articles/css-grid-a-helpful-mental-model-and-the-power-of-grid-lines-4d5050e2d975310a.md): WebKit · 2025-10-10 · Medium · 9 min read · CSS, Frontend
  CSS Grid becomes easier to reason about when a layout starts from the container, treated like a spreadsheet whose columns and rows are defined before content is placed.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
