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

> Note that the new value doesn't have to be a hyphenated keyword, it could be two keywords, `grid` and `something-else`. For example (not saying this is a good example), we could have `grid single-axis` and `grid dual-axis` represent masonry and 2-axis grid layout, respectively, with `grid` on its own implying the second option. Or use `grid pack` and `grid grid` with `grid` implying the latter. Or whatever.

@fantasai how would that work with the current [multi-keyword syntax](https://developer.mozilla.org/en-US/docs/Web/CSS/display#syntax) with `display: <display-outside> <display-inside>`?

Would that mean introducing a third keyword so that e.g. inline masonry would look like this `display: inline grid single-axis`?

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


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

Received on Tuesday, 16 September 2025 07:31:01 UTC