Re: [csswg-drafts] [css-grid-2] Masonry layout (#4650)

It'd be nice to think how many of the grid layout stuff is needed or not for masonry layout. Basically thinking from an author perspective.

* Do we need to set sizes for the columns? Do we need those sizes depend on the content (that might be very tricky as you never know when an item is going to end up?
  For example, if I got the initial proposal properly, if we have `grid-template-columns: max-content 500px;` and then we have 3 auto placed pictures, first picture will go to the first row and first column and will define the size of that column. But maybe picture 3 is bigger so it's going to overflow (still when we're setting `max-content` on the column) which would be hard to understand I guess.
* Do we need to be able to position an item into a particular column? Or to span columns?
  If we allow people to set something like `grid-column: 2;` in a particular picture. Maybe there'll be confusion that something like `grid-column: 2; grid-row: 3;` (whatever that could mean on author's) maybe they want to refer to the 3rd position on the 2nd column, but it won't do anything regarding the row information.

Probably there could be more questions about grid layout features that might be useful or not for masonry layout.

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

Received on Thursday, 23 January 2020 15:11:41 UTC