Re: [csswg-drafts] [css-grid-3][masonry] item-flow row vs. column in masonry layouts (#12803)

@alisonmaher I think there's a misunderstanding in how @fantasai's proposal works. There is no order dependency, that would be against how CSS works in general.

```
display: grid-lanes;
grid-template-rows: 100px 100px;
grid-auto-flow: row;
```

and 

```
display: grid-lanes;
grid-auto-flow: row;
grid-template-rows: 100px 100px;
```

are equivalent. `grid-auto-flow: row;` would be the source of truth here.

Only the `grid-auto-flow: normal` value (e.g. the default value) uses the grid-template to determine the flow direction, as soon as you set `grid-auto-flow` to another value, that value takes precedence, and stops using grid template properties to determine the flow direction. Think of `normal` as a magic value that takes in account `grid-template`, rather than the whole `grid-auto-flow` property taking in account for `grid-template`.

 





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


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

Received on Wednesday, 3 December 2025 16:39:31 UTC