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

Re: [css-grid] repeat(auto) issue

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 10 Feb 2015 09:44:53 +1100
Message-ID: <CAAWBYDBZR=9m9RuhLOVpuBAcXL6rj0GYxLxpFRqmJTB5tkpCYg@mail.gmail.com>
To: François REMY <francois.remy.dev@outlook.com>
Cc: CSS WG <www-style@w3.org>
On Tue, Feb 10, 2015 at 8:22 AM, François REMY
<francois.remy.dev@outlook.com> wrote:
> There’s something I don’t like the current repeat(auto, …) definition : it
> doesn’t allow to solve what I think are useful use cases:
>
> Let’s figure out I want a grid of items that’s centered horizontally inside
> a container. The grid is possibly complex (multiple line names per
> repetition block) and cannot be emulated by a flexbox.
>
> If I want the amount of repetition to be constrained by a max-width
> constrain AND by the amount of repetitions required to display all items of
> the grid (to preserve the right horizontal centering), then I’m out of luck
> right now.
>
> I prefer a definition of “auto” which adapts by attempting to create more
> repetition as the automatic placement algorithm wrap for the first time.
> This means multiple passes of the placement)layout for the first line, but
> this is way better to solve many use cases.

I don't understand what's wrong with the current definition, based on
your description.  Can you provide more detail about the case you're
talking about?

~TJ
Received on Monday, 9 February 2015 22:45:41 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:52:01 UTC