---
title: "Help us invent CSS Grid Level 3, aka “Masonry” layout"
description: "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."
url: "https://swe.quest/articles/help-us-invent-css-grid-level-3-aka-masonry-layout-ed399042099ed6d0"
canonical: "https://webkit.org/blog/15269/help-us-invent-masonry-layouts-for-css-grid-level-3/"
source: "WebKit"
published: "2024-04-19"
difficulty: "medium"
kind: "Opinion"
reading_minutes: 19
tags: ["css","browsers","frontend"]
---

# Help us invent CSS Grid Level 3, aka “Masonry” layout

A post on [WebKit](https://swe.quest/sources/webkit.md), published 2024-04-19, 19 min read, Opinion. Original: [https://webkit.org/blog/15269/help-us-invent-masonry-layouts-for-css-grid-level-3/](https://webkit.org/blog/15269/help-us-invent-masonry-layouts-for-css-grid-level-3/)

## Summary

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. Building it into Grid rather than a separate \`display: masonry\` keeps Grid's full column-sizing power: mixed fixed and flexible tracks, fr ratios, max-content, minmax and auto-fill. It also keeps spanning, subgrid and explicit placement, which enable layouts like asymmetric photo galleries, mega menus and lively article listings. The WebKit team demonstrates these with live demos and asks developers to weigh in on the CSS Working Group debate. An update notes that a W3C Working Draft now includes these abilities, while the syntax is still unsettled.

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)
- [Frontend](https://swe.quest/tags/frontend.md) (Web & mobile)

## Prerequisites

- CSS Grid basics ([easy posts on CSS](https://swe.quest/tags/css.md?difficulty=easy))
- grid-template-columns and fr units

## Keywords

CSS Grid Level 3, Masonry layout, Subgrid, Safari Technology Preview, WebKit, CSS Working Group, View Transitions

## Related posts

- [Help us choose the final syntax for Masonry in CSS](https://swe.quest/articles/help-us-choose-the-final-syntax-for-masonry-in-css-49421042d3732dc4.md): WebKit · 2024-10-21 · Medium · 31 min read · CSS, Browsers, Language design
  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.
- [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)
