Re: [csswg-drafts] [css-grid-3] Designer/developer feedback on masonry layout (#10233)

I'm all for `display: grid` being extended, it's also quite logical in my view. I think the proposed syntax is a logical syntax, you're effectively independently defining a masonry layout in either direction. One difficulty for me would be, how should the following behave?

```
display: grid;
grid-template-rows: masonry;
grid-template-columns: masonry;
```

This could be a messy layout as follows:

<img width="1161" alt="image" src="https://github.com/w3c/csswg-drafts/assets/8543370/14e83e4a-1184-4afc-89db-5610422aea0b">

Or should this be an error condition? If this shouldn't be allowed, it would be a slight problem for me, because it seems to break the line independence of css. Now by adding line 3, you've effectively broken the way line 2 should work. So this case would need to lead to a reasonable layout. 

> But then my question would be, **is this still a grid**?



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


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

Received on Tuesday, 23 April 2024 12:39:40 UTC