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

Re: [css-grid] auto-placement algorithm step 2 doesnt' respect sparse/dense/stack choice

From: Manuel Rego Casasnovas <rego@igalia.com>
Date: Thu, 22 Jan 2015 14:49:42 +0100
Message-ID: <54C0FFF6.2060100@igalia.com>
To: www-style@w3.org
On 16/09/14 19:44, Tab Atkins Jr. wrote:
> In another thread, Manuel Casasnovas points out that step 2 of the
> auto-placement algorithm (which processes items with a definite row
> position but auto column position) doesn't vary its behavior based on
> the algorithm specified in 'grid-auto-flow'.  Interestingly, it
> actually does a "dense" packing, as it repeatedly looks for the
> "earliest" spot in the row that the item will fit in.  (This makes
> sense, as it's the easiest way to implement it; doing a sparse packing
> would require more work, and wouldn't even maintain the ordering that
> is the entire justification for sparse packing.)
> Should we have this step pay attention to the algorithm, or leave it
> as it is?  I'm inclined to leave it as it is.

I've just realized that at the end this has been changed [1] in the spec:

I wanted to point out that this makes the implementation more
complicated, as you need to keep one cursor for each row and column, in
order to be able to have a "sparse" behavior per track.

Are we completely sure about this change?
Sorry, but I didn't find the discussion related to this.


[1] https://hg.csswg.org/drafts/rev/286fa515362d
Received on Thursday, 22 January 2015 13:50:17 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:50 UTC