content icon indicating copy to clipboard operation
content copied to clipboard

[CSS] Add grid-lanes documentation to display property

Open BHUVANSH855 opened this issue 5 months ago • 4 comments

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-lanes
    • css.properties.grid-template-rows.masonry → css.properties.display.inline-grid-lanes
  • Added display: grid-lanes; and display: inline-grid-lanes; to the display property syntax section.

  • Added descriptions for both grid-lanes and inline-grid-lanes.

  • Added grid-lanes and inline-grid-lanes to the display comparison example selector.

  • Added cross-links between the display property page and the Masonry layout guide.

Related issues and pull requests

Fixes #44421

BHUVANSH855 avatar Jun 13 '26 05:06 BHUVANSH855

Preview URLs (2 pages)

(comment last updated: 2026-06-25 06:48:57)

github-actions[bot] avatar Jun 13 '26 06:06 github-actions[bot]

@estelle I'm shifting my assignment to you - I don't know anything much about masonry.

hamishwillee avatar Jun 16 '26 00:06 hamishwillee

Hi @dipikabh,

Just checking regarding this PR. Any updates?

BHUVANSH855 avatar Jun 20 '26 10:06 BHUVANSH855

Hi @hamishwillee,

i have implemented the requested changes, let me know if anything needs modification later.

Thanks

BHUVANSH855 avatar Jun 23 '26 14:06 BHUVANSH855

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.

hamishwillee avatar Jun 26 '26 00:06 hamishwillee

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.

BHUVANSH855 avatar Jun 29 '26 02:06 BHUVANSH855

@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.

hamishwillee avatar Jul 02 '26 23:07 hamishwillee