Re: [csswg-drafts] [css-grid-3][masonry] variable track sizes + dense packing has poor performance (#9326)

Ok, discussing with @stwrt, new proposal for dense-packing in masonry:
1. Lay out the item in the track where it would be without dense packing.
2. If the item is short enough to fit into an earlier gap _in a track with the same used size as this track_, move it into that gap.

This avoids doing more than one layout, and it works as expected for explicitly-placed masonry in mixed-size tracks as well as for auto-placed masonry in consistently-sized tracks, and does a reasonable job of dense-packing large collections of auto-placed masonry in mixed-size tracks as well.

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


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

Received on Tuesday, 5 November 2024 18:25:27 UTC