W3C home > Mailing lists > Public > www-style@w3.org > July 2014

Re: [css-grid] Span & faulty line names

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 8 Jul 2014 08:29:00 -0700
Message-ID: <CAAWBYDCO0iCvkcBO9xyK9ovfBZ9jjCKZh=K+ndPtNnHdmFFxcg@mail.gmail.com>
To: Fran├žois REMY <francois.remy.dev@outlook.com>
Cc: www-style list <www-style@w3.org>
On Jul 8, 2014 1:43 AM, "Fran├žois REMY" <francois.remy.dev@outlook.com>
wrote:
>>
>> > I was off a few days, but I would still like to reformulate another >
proposal
>> > here now I understand your reasoning better.
>> >
>> > What if instead we specified that "span 3 invalid-name" spans to :
>> > - the minimum of
>> > -- a span of 3 lines (with no name constraint)
>> > -- the last line of the explicit grid
>> >
>> > With this algorithm, we try to preserve as much as possible the two
>> > assumptions of this kind of span:
>> > -- at least three lines will be spanned
>> > -- the span will not cross the explicit grid boundaries
>> >
>> > While this is open for debate, I would propose to apply this rule in
two
>> > cases:
>> > - no line is named "invalid-name" at all.
>> > - no line is named "invalid-name" after the line from which the span is
>> > computed.
>> > (currently, the second one reverts to a span of 1 after error >
correction)
>> >
>> > Thoughts?
>>
>> So, fantasai and I discussed your proposal and reviewed the
>> error-handling rules again, and we think we've got a simpler proposal:
>> assume that all lines outside the explicit grid have all possible
>> names.
>>
>> This lets us be consistent in all the error-handling cases where there
>> aren't enough lines of a given name, which makes the whole thing
>> easier to understand.  It's also more noticeably wrong, which is an
>> acceptable outcome here - if the author fat-fingers a line name, the
>> item will get positioned somewhere obviously weird, and they'll be
>
> able to correct it.
>>
>>
>> We've gone ahead and committed this change to the draft.  Thoughts?
>>
>> ~TJ and fantasai
>
>
> It looks ok to me, thanks.
>
> That being said, there are two edge case that I don't see solved clearly
with the new rules, and it is the following ones:
>
>    GRID-ITEM-1 { grid-row: -10 line-name }
>    GRID-ITEM-2 { grid-row-start: span 10 line-name; grid-row-end:
last-line }
>
> If there are only 9 lines named "line-name", what does it do? As far as I
know, we can't add more implicit lines at the beginning of the grid. So,
should we specify that it maps to the first line of the grid instead?

We can add lines before the implicit grid as well, so those work in the
same way.

~TJ
Received on Tuesday, 8 July 2014 15:29:27 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:23 UTC