[css3-grid-layout] grid-end / grid-after with <integer>


I am extremely concerned about the change that was made to the
specification to have grid-end (resp. grid-after) be resolved against
the grid element's end edge (resp. grid element's after edge) in the
<integer> case.

It is this confusing for people (grid-row: 1 / 1 is a grid item
spanning the whole grid) and it took me a while to understand why the
example 15 is correct [1]. This issue was already mentioned during
some previous meeting's minutes [2].

Mostly it opens us to a slew of complexity for the auto-placement
algorithm as we would need to re-resolve our grid positions if the
grid grows (which removes the current algorithm's guaranteed linear
time). The other alternative is to ignore the author's intent and
don't recompute which is equally bad.

I do like the consistency with the other values but the previous
issues makes me wonder if we should just make grid-end (resp.
grid-after) resolve against the start (resp. before) side all the


[1] http://dev.w3.org/csswg/css3-grid-layout/#grid-start
[2] http://lists.w3.org/Archives/Public/www-style/2012Nov/0458.html

Received on Friday, 8 March 2013 21:59:52 UTC