---
title: "Introducing CSS Grid Lanes"
description: "CSS Grid Lanes (`display: grid-lanes`) brings native masonry layouts to the web, available in Safari Technology Preview 234."
url: "https://swe.quest/articles/introducing-css-grid-lanes-2d3c264610a9740d"
canonical: "https://webkit.org/blog/17660/introducing-css-grid-lanes/"
source: "WebKit"
published: "2025-12-19"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 8
tags: ["css","browsers","frontend","accessibility"]
---

# Introducing CSS Grid Lanes

A post on [WebKit](https://swe.quest/sources/webkit.md), published 2025-12-19, 8 min read, Announcement. Original: [https://webkit.org/blog/17660/introducing-css-grid-lanes/](https://webkit.org/blog/17660/introducing-css-grid-lanes/)

## Summary

CSS Grid Lanes (\`display: grid-lanes\`) brings native masonry layouts to the web, available in Safari Technology Preview 234. Lanes are defined with standard \`grid-template-columns\` or \`grid-template-rows\`. Each item goes into whichever lane leaves it closest to the start, so tab order follows visible content and infinite scroll needs no JavaScript layout. Grid features such as spanning, explicit placement and varied lane sizes all work, and flow direction (waterfall vs. brick) is inferred from which template is defined. A new \`fit-tolerance\` property (default 1em, formerly \`item-tolerance\`/\`flow-tolerance\`) treats near-equal lane heights as ties to reduce reordering that confuses keyboard and screen reader users.

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

## Prerequisites

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

## Keywords

CSS Grid Lanes, masonry layout, Safari Technology Preview, WebKit, fit-tolerance, CSS Working Group

## Related posts

- [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.
- [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.
- [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.
- [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.
- [WebKit Features for Safari 26.4](https://swe.quest/articles/webkit-features-for-safari-26-4-69cb77acb4c1c530.md): WebKit · 2026-03-24 · Medium · 34 min read · Browsers, CSS, Frontend
  Safari 26.4 ships 44 features, 191 fixes and one deprecation, headlined by CSS Grid Lanes (\`display: grid-lanes\`) for masonry-style layouts with \`flow-tolerance\` control, WebTransport as a low-latency WebSocket alternative, and the Keyboard Lock API.

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)
