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

RE: [css-grid] grid shorthand and grid-auto-rows/cols

From: François REMY <francois.remy.dev@outlook.com>
Date: Sun, 28 Feb 2016 13:08:12 -0800
Message-ID: <DUB408-EAS37342BEC113C0F5D593A959A5B90@phx.gbl>
To: "'fantasai'" <fantasai.lists@inkedblade.net>, <www-style@w3.org>
That looks a bit too magic to me.

What if we just specified that when the last item of a "grid-template-<track>" list is "repeat(auto-fit, ...)" containing one track it also sets "grid-auto-<track>s" to that track size?

It does seem like it achieves the goal efficiently, but remains clear to an author that does not know everything about grids. We just need to specify that when the size of tracks in a auto-fit-repeat is not fixed-breadth, then there is only one repetition (which makes sense, that one repetition contains a fraction unit that will capture any remaining space).

What do you think?

> -----Message d'origine-----
> De : fantasai [mailto:fantasai.lists@inkedblade.net]
> Envoyé : dimanche 28 février 2016 11:25
> À : www-style@w3.org
> Objet : [css-grid] grid shorthand and grid-auto-rows/cols
> I was just thinking about things like
>    grid: 1fr auto 300px / 1fr;
> It would make sense to me if that lone <track-size> were also copied into
> 'grid-auto-rows', so that as you add auto-placed rows, they have the same
> sizing function.
> ~fantasai
Received on Sunday, 28 February 2016 21:08:41 UTC

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