- From: Tab Atkins Jr. <jackalmage@gmail.com>
- Date: Tue, 10 Feb 2015 09:44:53 +1100
- 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