Re: [css3-grid-layout] negative spans

On 02/20/2012 08:21 PM, Phil Cupp wrote:
> I see I didn't define the type correctly but I intended positive integers only (for grid-row/column properties in addition to span length).  I need to think through what it means for implicit track creation when the author says grid-column:-100, but I can probably make sense of it.  I read it as count 100 tracks back from the end and position this item (so ensure that 99 tracks exist after this one).

Zero will wind up being a bit confusing, given we are indexing starting with 1, right?

> Negative spans can make sense as well.  I think your scenario is to pin something to the end of the grid with something like grid-column: 1; grid-column-span: -1;  Is that right?

Yes.

~fantasai

Received on Thursday, 23 February 2012 18:13:19 UTC