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

Re: [css-grid] repeat(auto) column clamping

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 12 Aug 2015 09:21:17 -0700
Message-ID: <CAAWBYDC2vnB_jDXWrscoBBO2DDiyo81wbLbXfkiK0otuQwmGBQ@mail.gmail.com>
To: Zephyr Pellerin <zephyr.pellerin@gmail.com>
Cc: www-style list <www-style@w3.org>
On Tue, Aug 11, 2015 at 2:00 AM, Zephyr Pellerin
<zephyr.pellerin@gmail.com> wrote:
> In addition to honoring max-width/height, repeat(auto) would
> benefit from a property to clamp additional rows if the layout
> does not have enough items to complete a row (or generate as many as
> needed).
>
> A layout example could include a users page with photos positioned in
> a grid (where the user items contain subgrids). The repeat(auto) honors the
> indefinite max-width @ 100%. If I want the amount of repetition to display
> all of these users in the grid to preserve horizontal centering, there
> is no reasonable way (including flexbox) to do so today.
>
> I realize this is somewhat ambiguous, if you feel a diagram would
> illustrate the issue I can generate one.

Yup, this is currently tracked as Issue 6 in the spec
<https://drafts.csswg.org/css-grid/#issue-6d21701c>.

~TJ
Received on Wednesday, 12 August 2015 16:22:06 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 12 August 2015 16:22:07 UTC