Re: [csswg-drafts] [css-grid-1] Unpredicable gap positioning with two or more tracks. (#7197)

I see. That still seems incorrect though (though it may be correct as per the spec).

If I set a grid to be `50fr`, I would expect that it would take up 50% of the space of the grid (minus any evenly aligned gaps).

By that logic, in your example, a grid of `1020px`, with a gap size of `10px`, the first column would result in a width of `505px`, with an evenly spaced gap. Otherwise, as it is implemented now, I am present with a column which is actually 49% of the available width: `(1020 - 20) / 50`.

If this is indeed the expected behavior, is it now well documented in any developer documentation, and results in counter intuitive layout behavior.

---

Regardless, this is helpful in that I can at least implement a solution that will work as expected here.

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


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

Received on Tuesday, 5 April 2022 14:10:41 UTC