← Back to release summary

CSS Grid-Lanes (i.e. Masonry)

Category
CSS
Type
New or changed feature
Status
No active development (Chrome No active development)
Intent stage
None

WPT details: https://wpt.fyi/results/css/css-grid/grid-lanes

Summary

CSS Grid-Lanes is a layout module where items of varying heights are arranged in columns, filling gaps to create a seamless grid, similar to a brick wall, perfect for accommodating elements with varying aspect ratios. Unlike CSS Grid, Grid-Lanes is better suited for one-dimensional flow layouts, like image galleries, where the focus is on filling the space efficiently rather than aligning items along both axes. Grid-Lanes provides greater design freedom, enabling the creation of dynamic, responsive layouts that adapt to content variations without the need for manual adjustments or a non-standard JavaScript implementation.

Motivation

Without native support for Grid-Lanes, developers need to rely on non-standard implementations that might not be interoperable across browsers and require extra effort to maintain. In Blink, we want to specifically prototype the alternative approach of making CSS Grid-Lanes its own display type, looking to showcase that this approach is on par with developer's expectations without introducing unnecessary complexity to an already overloaded CSS Grid spec.

Standards & signals

Ecosystem

Samples: https://microsoftedge.github.io/Demos/css-masonry

Explainers: https://developer.chrome.com/blog/masonry-update

View on chromestatus.com