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

[css-grid] step zero in 10.5

From: Mats Palmgren <mats@mozilla.com>
Date: Sun, 28 Feb 2016 23:32:57 +0100
To: www-style@w3.org
Message-ID: <da087c65-1049-6c8f-4d9f-a46dfa900157@mozilla.com>
The recently added step zero in "10.5. Grid Item Placement Algorithm"
"This effectively changes the order of their boxes in the box-tree,
and how the rest of this algorithm deals with the generated flex items."

I suppose you mean "grid items"?  I don't understand what the latter
part about "generated grid items" is trying to say though.
Please clarify.

Also, why do you elaborate here about how to do the ordering at all?
Couldn't you simply say that this algorithm works on boxes in
"order-modified document order"? a term used elsewhere in Grid
and linked to its definition in Flexbox:

I would much prefer if you use already established terms and
definitions to avoid ambiguity (i.e. is the added text here in fact
the same as the "order-modified document order" or is there some
subtle difference?)

There is also this (new) note:
"Note: Absolutely-positioned children of a grid container do not
participate in grid layout, but are reordered together with any grid
item children."

I think it's a mistake to mention abs.pos. boxes here.  This algorithm
doesn't apply to abs.pos. boxes at all.   Chapter  "11.2. With a Grid
Container as Parent" already covers this and it's clear:
"An absolutely-positioned child of a grid container does not affect
the placement of other items or the sizing of the grid. However, it
does participate in the reordering step (see order), which has an
effect on painting order."

I think the added "reordered together with any grid item children"
part adds confusion because it suggests that grid items are affected
by abs.pos. box order somehow (or vice versa) which isn't the case.
These two types of boxes can be sorted orthogonally.

So I suggest you remove the note about abs.pos. boxes in step zero,
or at least remove the part after the comma.  Also, remove the added
"(and any absolutely-positioned grid container children)".
Step zero should simply say "sort grid item boxes in 'order-modified
document order'" with a link to the definition of that term.
Alternatively, remove step zero and add "this algorithm works on
grid item boxes in 'order-modified document order'" in the intro.

Received on Sunday, 28 February 2016 22:33:29 UTC

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