RE: [css-grid] Why only <length>s in *-gap?

Just making sure, how would you resolve percentages when columns are set to "auto" and the grid has no explicit width? Actually, the issue is more glaring when you think about a grid that has "height: auto" and implicit rows.

I guess the use case for percentages is when the grid has a definite size for the grid-gap axis, right?

> -----Original Message-----
> From: Alan Stearns []
> Sent: Friday, March 25, 2016 1:58 PM
> To:
> Subject: [css-grid] Why only <length>s in *-gap?
> There was a question on Twitter [1] on why the *-gap properties didn’t allow
> percentages. I see some early discussion mentioning that the *-gap
> properties should allow <track-breadth> values minus the keywords, which
> would be <length> | <percentage> | <flex>. But the current draft only allows
> <length>s. Is there a reason for this?
> Thanks,
> Alan
> [1]

Received on Friday, 25 March 2016 21:14:17 UTC