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

Re: [css-grid] Two <line-names> for the same line with repeat()

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Fri, 28 Feb 2014 15:52:12 -0800
Message-ID: <CAAWBYDBkuu8-CiUi5TbkKW3ksbQZ=2h95aRYKbxr+NAAVv_QEA@mail.gmail.com>
To: Simon Sapin <simon.sapin@exyr.org>
Cc: www-style list <www-style@w3.org>
On Fri, Feb 28, 2014 at 3:19 PM, Simon Sapin <simon.sapin@exyr.org> wrote:
> Hi,
>
> From the current ED:
>
>> <track-list> = [ <line-names>? [ <track-size> | <repeat()> ] ]+
>>                <line-names>?
>
>
>> repeat() = repeat( <positive-integer> ,
>> [ <line-names>? <track-size> ]+
>>                    <line-names>? )
>>
>> The first argument specifies the number of repetitions. The second
>> argument is a track list, which is repeated that number of times. The
>> repeat() notation cannot be nested; doing so makes the declaration
>> invalid.
>
>
> After expanding repeat() into a repeated track list, this can result in
> adjacent <line-names>, which is normally not allowed.
>
> For example, this:
>
>     (a) repeat(2, (b) 40px (c)) (d)
>
> Expands to:
>
>     (a) (b) 40px (c) (b) 40px (c) (d)
>
> Should adjacent <line-names> lists be "merged"? The end result would be:
>
>     (a b) 40px (c b) 40px (c d)

It's not literally, textually expanded.  So yes.

~TJ
Received on Friday, 28 February 2014 23:52:59 UTC

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