Re: [csswg-drafts] [css-grid-3] The initial value of `masonry-slack` should be 0 (#10882)

> a 1px difference between two columns should definitely not cause the masonry items to be misordered by default

I have tested desandro's Masonry and Macy.js, and both definitely do that by default. I didn't even see an option to change this, so it doesn't seem something authors expect or are asking for (unlike #10883 btw).

While I agree that using some positive value is desirable in most cases, I'm not convinced that the confusion that it may cause if we set `1em` by default is a net gain.

> we use it for `column-gap`

Yeah I guess that's a good point, though.

> I really like the idea of `1lh` as the default.

I don't see `1lh` as a particularly better choice than `1em`, it seems to me that masonry is typically used for image galleries where the height of a text line isn't much relevant.

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


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

Received on Tuesday, 17 September 2024 16:42:56 UTC