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

Re: [css-values] The last grammar combinator - 1+ in order

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 24 Apr 2014 08:10:50 -0700
Message-ID: <CAAWBYDAtLbqt44DFV4XV98O4X41Xtzh9B+7q1fC_sfyJxD71Rw@mail.gmail.com>
To: www-style list <www-style@w3.org>
On Wed, Apr 23, 2014 at 7:16 PM, Tab Atkins Jr. <jackalmage@gmail.com> wrote:
> On Thu, Apr 17, 2014 at 5:27 PM, Tab Atkins Jr. <jackalmage@gmail.com> wrote:
>> We're currently missing a grammar combinator in CSS's property grammar syntax.
>>
>> We can express "exactly one" as "a | b", and we can express 5 of the 6
>> possibilities in {0+, 1+, all}×{in order, any order}* .  The one thing
>> we're missing is "1+, in order", which we can't write without
>> duplication and honestly confusing grammar.
>
> More syntax possibilities:
>
> * A // combinator - it looks similar to ||, which is good, because
> they both occupy the "1+" row in the table.

I think zcorpan offhand-suggested this in chat: a >> combinator.  It
seems to indicate that ordering is important, which is nice.

~TJ
Received on Thursday, 24 April 2014 15:11:37 UTC

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