[CSS] Add grid-lanes documentation to display property
Description
Updates the display property documentation to include the new masonry layout display values grid-lanes and inline-grid-lanes. Also updates the Masonry layout guide to use the current browser compatibility keys and adds cross-references between the two pages.
Motivation
The Masonry layout guide already documents the new masonry implementation based on display: grid-lanes and display: inline-grid-lanes, but the display property page was missing syntax and descriptive documentation for these values. In addition, the Masonry layout guide was still using outdated browser compatibility keys. These changes keep the documentation aligned with the current specification and browser implementation.
Additional details
Changes included in this PR:
-
Updated the Masonry layout guide browser compatibility references:
css.properties.grid-template-columns.masonry→css.properties.display.grid-lanescss.properties.grid-template-rows.masonry→css.properties.display.inline-grid-lanes
-
Added
display: grid-lanes;anddisplay: inline-grid-lanes;to thedisplayproperty syntax section. -
Added descriptions for both
grid-lanesandinline-grid-lanes. -
Added
grid-lanesandinline-grid-lanesto the display comparison example selector. -
Added cross-links between the
displayproperty page and the Masonry layout guide.
Related issues and pull requests
Fixes #44421
Preview URLs (2 pages)
/en-US/docs/Web/CSS/Guides/Grid_layout/Masonry_layout/en-US/docs/Web/CSS/Reference/Properties/display
(comment last updated: 2026-06-25 06:48:57)
@estelle I'm shifting my assignment to you - I don't know anything much about masonry.
Hi @dipikabh,
Just checking regarding this PR. Any updates?
Hi @hamishwillee,
i have implemented the requested changes, let me know if anything needs modification later.
Thanks
i have implemented the requested changes, let me know if anything needs modification later.
Thanks @BHUVANSH855
The descriptions on the properties seem better to me, but the other problems are still there.
- You removed the options that didn't demonstrate the feature in the example. I was hoping you'd make the example work, since that is required to fix the linked issue.
- The inline case still links to masonry guide, which doesn't demonstrate it. I think that is OK because it is probably out of scope to extend it.
So the thing to do is to fix the example.
Note also, this was a fly-by review. I'm hoping @estelle will come and give you the proper CSS review when she is available. In other words, I'm not going to merge this myself even when I think it is OK.
i have implemented the requested changes, let me know if anything needs modification later.
Thanks @BHUVANSH855
The descriptions on the properties seem better to me, but the other problems are still there.
- You removed the options that didn't demonstrate the feature in the example. I was hoping you'd make the example work, since that is required to fix the linked issue.
- The inline case still links to masonry guide, which doesn't demonstrate it. I think that is OK because it is probably out of scope to extend it.
So the thing to do is to fix the example.
Note also, this was a fly-by review. I'm hoping @estelle will come and give you the proper CSS review when she is available. In other words, I'm not going to merge this myself even when I think it is OK.
Thanks for the clarification, @hamishwillee.
I understand now that the goal is to make the comparison example actually demonstrate the masonry behavior, rather than simply documenting the new values or removing the options.
I'll work on updating the example so that grid-lanes is visibly different while keeping the existing comparison useful for the other display values as well.
@estelle Note that I am pushing this back to you and unregistering me as reviewer. It is waiting on example fix. I'm away next week.