W3C home > Mailing lists > Public > www-style@w3.org > March 2013

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

From: Julien Chaffraix <julien.chaffraix@gmail.com>
Date: Fri, 8 Mar 2013 13:59:00 -0800
Message-ID: <CAGY_oHLEfmj1aiHchaDn5qK2aXoNc4WqNgMjiM1Oc5enrEjRZw@mail.gmail.com>
To: www-style list <www-style@w3.org>

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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:50:40 UTC