w3c / w3c/csswg-drafts

[css-grid-3] `grid-template-areas` in masonry

Open
#7,995 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Commenter Response Pending css-grid-3 topic: masonry
Dominant language
Bikeshed
Stars
4.9k
Forks
816
PR merge metrics
PR metrics pending

Description

https://drafts.csswg.org/css-grid-3/ seems to assume that the explicit grid has 0 tracks in the masonry axis.

This is usually the case, since grid-template-rows/columns needs to be set to masonry instead of a list of track sizes.
However, grid-template-areas can also add tracks into the explicit grid.

I still don't fully understand how masonry works, but testing in Firefox it seems that grid-template-areas is allowed to name lines but not create explicit tracks.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the CSS Grid Level 3 draft at https://drafts.csswg.org/css-grid-3/, focusing on masonry and grid-template-areas. Compare the draft’s assumptions about explicit tracks with the reported Firefox behavior. Done means the specification clearly resolves whether grid-template-areas creates tracks in the masonry axis or only names lines.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
documentation
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.