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

RE: [css3-grid-layout] negative spans

From: Phil Cupp <pcupp@microsoft.com>
Date: Thu, 23 Feb 2012 23:11:07 +0000
To: fantasai <fantasai.lists@inkedblade.net>
CC: "www-style@w3.org" <www-style@w3.org>
Message-ID: <58A081B0F3FA704EAB1082E64639BB010A41FD71@TK5EX14MBXC284.redmond.corp.microsoft.com>
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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:51 GMT