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

RE: [css3-grid-layout] mismatched grid template strings

From: Phil Cupp <pcupp@microsoft.com>
Date: Fri, 16 Mar 2012 02:15:39 +0000
To: Brad Kemper <brad.kemper@gmail.com>, fantasai <fantasai.lists@inkedblade.net>
CC: "www-style@w3.org" <www-style@w3.org>
Message-ID: <58A081B0F3FA704EAB1082E64639BB010A48FBE4@TK5EX14MBXC284.redmond.corp.microsoft.com>
Brad, in your example below the expansion of b resulted in a non-rectangular cell so that wouldn't be OK.  I think its simplest just to treat the missing letters as an unnamed region of the grid.  The location can be assigned to a grid item using a numeric position, but not by using a named grid cell.  That's basically what Elika was suggesting with '.' padding, although we don't currently talk about the role of non-letters (i.e. '.') in the grid.

I'll open an issue to document something explicit regarding unequal lettering.  I'll open another for documenting the role of non-letters for the grid-template property.

-----Original Message-----
From: Brad Kemper [mailto:brad.kemper@gmail.com] 
Sent: Thursday, March 15, 2012 6:52 PM
To: fantasai
Cc: www-style@w3.org
Subject: Re: [css3-grid-layout] mismatched grid template strings

On Mar 13, 2012, at 6:25 PM, fantasai <fantasai.lists@inkedblade.net> wrote:

> Lea Verou pointed out a problem in the Grid Layout spec: it doesn't 
> specify what happens if the template strings are not all the same 
> length, e.g.
>  grid-template: "aa"
>                 "b"
>                 "bg";
> Possible options are to treat this as invalid; or to fill the missing 
> slots with "." (the Template module's unnamed placeholder).

Another option would be to repeat the letter into a missing slot. I like this idea. So, a person could write this:

grid-template: "a"

And it would automatically expand to this:

grid-template: "aa"
Received on Friday, 16 March 2012 02:16:13 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:12 UTC