Re: [csswg-drafts] [css-grid-3] Renaming `masonry` keyword (#9733)

Hey everyone,

I’d like to propose a different approach that keeps things simple without introducing too many new keywords and abstractions.

We can activate the masonry layout by adding `pack`, `waterfall`, or `next` as a keyword to the grid-auto-flow property. (To clarify, `waterfall` is a new keyword I’m suggesting, and it can have a distinct behavior from `pack`, but it's a different story)

For example, setting `grid-auto-flow: row pack` would mean the layout is calculated using only the `grid-template-rows` property and ignores the `grid-template-columns` property. It can also work in a subgrid as well.

The masonry layout is a one-dimensional grid, so it always has at least one row and column. This makes terms like `none`, `off`, or `disabled` less appropriate, in my opinion.

Maintaining the concepts of rows and columns here is crucial because placement properties (place-justify, place-items) should work accordingly.

Thanks for considering this idea!

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


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

Received on Monday, 10 June 2024 08:55:11 UTC