Re: [css3-grid-layout] Clarification on ' span' named grid line

On Wed, Jun 19, 2013 at 2:01 PM, Tab Atkins Jr. <jackalmage@gmail.com> wrote:
> On Wed, Jun 19, 2013 at 9:16 AM, Julien Chaffraix <jchaffraix@google.com> wrote:
>> Hi everyone,
>>
>> I couldn't find a good answer to the following case in [1]: What
>> happens if there is no named grid line with the given name for the
>> 'span' case? (for example, grid-row: span 2 'nonexistent' / 5)
>>
>> The specification defines what to do for the non-spanning case (ie
>> grid-row: 'nonexistent' / 5). It's unclear that it is supposed to
>> extend to the 'span' case (both examples would be equivalent to 1 /
>> 5).
>>
>> An alternative way to treat this is to make it an error and compute
>> the line placement to 'auto' or 'span 1'.
>>
>> Any thoughts?
>
> Hmm, good catch.  I think we should compute it to "auto".

Actually, we've now specified it to simply ignore the name if it doesn't exist.

The reasoning for this is that, *if* the name existed, the *minimum*
number of tracks it could possibly span is the given number (if every
line had that name).  Computing it to "auto" would instead make it
span 1 track, which will be smaller than the real minimum unless the
number was 1.  Simply ignoring the name and paying attention only to
the (possibly omitted) number respects this default.

~TJ

Received on Monday, 19 August 2013 20:35:17 UTC