W3C home > Mailing lists > Public > www-style@w3.org > March 2016

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

From: Francois Remy <francois.remy.dev@outlook.com>
Date: Fri, 25 Mar 2016 14:13:46 -0700
Message-ID: <DUB408-EAS25591EB5144C824B96ECA77A5830@phx.gbl>
To: "'Alan Stearns'" <stearns@adobe.com>, <www-style@w3.org>
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 [mailto:stearns@adobe.com]
> Sent: Friday, March 25, 2016 1:58 PM
> To: www-style@w3.org
> 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] https://twitter.com/nilssolanki/status/712565981793619968
Received on Friday, 25 March 2016 21:14:17 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:09:01 UTC