Re: [csswg-drafts] [css-grid] Resolution of percentage row tracks and gutters with indefinite height (#5566)

So one reason people are using % for gutters/tracks is adding grid components to an older layout where everything is sized using %. So any flex, or float-based grid essentially. So I'm not sure why authors "shouldn't be using percentages". We've allowed percentages and it's completely valid to be using them. Some of the stuff that people show to me that is using % would definitely be better off using `fr`, however when I ask the question, the "this is a component for an older site" has come up a few times.

If we take that use case, what people are generally concerned about is the gap between columns (in horizontal-tb) as that's the thing they are controlling with % margins elsewhere. So what happens in the other dimension needs to make sense in that regard.

I've always been a fan of symmetry in grid, however I'm not sure whether that is actually what authors expect either. As probably the behaviour in block layout is quite ingrained in people so they might expect 10% means 10% margin all round (https://codepen.io/rachelandrew/pen/PozGqRy).

So all that said, I think the change would be ok. I'd rather have something clear to explain and to have interop. I also think it would be good for flex and grid to behave in the same way as then we only have two things to explain - it's like this in blok layout, and like this for flex and grid. 

I'll be on the Europe friendly call times later in the week anyway.

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


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

Received on Tuesday, 20 October 2020 07:14:53 UTC