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

I agree the spec should say so.  The grid-template property is underspecified compared to Bert's template layout module.  I've opened another issue to declare that non-rectangular grid cells are not allowed [1].  Specifically, non-rectangular grid cells or multiple grid cells with the same letter are invalid and cause the declaration to be dropped.

[1] https://www.w3.org/Bugs/Public/show_bug.cgi?id=16429

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

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

> On 03/15/2012 11:43 PM, Brad Kemper wrote:
>> 
>> On Mar 15, 2012, at 7:15 PM, Phil Cupp<pcupp@microsoft.com>  wrote:
>> 
>>> Brad, in your example below the expansion of b resulted in a non-rectangular cell so that wouldn't be OK.
>> 
>> Oops. I didn't even notice that. On the other hand, the spec doesn't seem to forbid non-rectangular grid cells, does it? It just doesn't have a way to create them other than with template. Personally, I think it would be useful to be able to create "L", "C", and "O" -shaped areas.
> 
> I think we all agree it would be useful, but it complicates the layout 
> calculations, so IIRC we're disallowing it for this round.

The spec should say so then, and say what happens if an author tries to create that shape. Does the whole template get thrown away, or does it create a new box on the row where a connected box would be invalid?

Received on Monday, 19 March 2012 06:06:24 UTC