RE: [css3-grid-layout] negative spans

I'm OK with not allowing 0 (it creates a nice symmetry).  I'm also fine with making 0 the first line from the starting edge and -1 the first line from the ending edge.  Do you have a preference?

-----Original Message-----
From: fantasai [mailto:fantasai.lists@inkedblade.net] 
Sent: Thursday, February 23, 2012 10:13 AM
To: Phil Cupp
Cc: www-style@w3.org
Subject: 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 23:11:44 UTC