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

> If we go with option 1, where column creates a waterfall layout, does column-reverse reverse the stacking order within the column, or reverse the placement order across columns? Whichever it does, wrap-reverse should presumably control the opposite axis. But also then starts to feel a bit confusing, imho...

I was somewhat under the impression that we'd only ever want to reverse the placement across columns as opposed to within columns. If you allow items to be filled in from the bottom to the top, what happens if the masonry container has an indefinite size? Would just keep normal ordering from top to bottom? And what happens if items overflow the container in that direction? Unlike flex, we wouldn't wrap to start a new column in that case, and it would be strange to me to overflow in the opposite direction.

Unless by "reverse the stacking order within the column" this means reverse the order that we process items in, that would be a possibility, as well, it just won't create the same effect as reversals in other layouts like flex.

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


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

Received on Tuesday, 7 October 2025 22:22:32 UTC