Re: [csswg-drafts] [css-grid-3] Masonry Switch Syntax (#12022)

Wild suggestion here: `display: grid-flex` *and* `display: flex-grid`, with each respectively setting the grid axis and stacking axis. 

Pros: this makes the syntax really compact and intuitive, while also keeping "grid" in the name. No new layout concepts need to be introduced, other than masonry-specific concepts where the axis interact. The stacking axis is not exactly the same as flexbox but is similar in concept, so `flex` might make sense to reuse here.

Cons: `display` isn't used for switching axis anywhere else, and we'd also need `inline-` variants, so `display: inline-grid-flex` and `display: inline-flex-grid` are a little messy.

-- 
GitHub Notification of comment by KurtCattiSchmidt
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12022#issuecomment-3207657309 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 20 August 2025 18:56:45 UTC