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

RE: [css3-grid-layout] negative spans

From: Phil Cupp <pcupp@microsoft.com>
Date: Mon, 20 Feb 2012 19:21:50 +0000
To: fantasai <fantasai.lists@inkedblade.net>, "www-style@w3.org" <www-style@w3.org>
Message-ID: <58A081B0F3FA704EAB1082E64639BB010A41B3E3@TK5EX14MBXC284.redmond.corp.microsoft.com>
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). 

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?


-----Original Message-----
From: fantasai [mailto:fantasai.lists@inkedblade.net] 
Sent: Monday, February 20, 2012 7:50 AM
To: www-style@w3.org
Subject: [css3-grid-layout] negative spans

It's not specified whether negative spans are allowed. I suggest be valid:
it allows the author to position something from the last cell that's spanned rather than the first. However zero spans should certainly be invalid.

Received on Monday, 20 February 2012 19:22:23 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:12 UTC