- From: Tab Atkins Jr. <jackalmage@gmail.com>
- Date: Thu, 29 Mar 2012 11:42:10 -0700
- To: "L. David Baron" <dbaron@dbaron.org>
- Cc: www-style@w3.org
On Wed, Mar 28, 2012 at 10:24 PM, L. David Baron <dbaron@dbaron.org> wrote: > As described in http://www.w3.org/TR/CSS21/about.html#value-defs , > the following Value line: > > Value: normal | alternate [, normal | alternate]* > > is not at all what it looks like. Since juxtaposition binds tighter > than | (though I admit thinking it was the other way around), this > syntax describes a property that allows values of the form: > > animation-direction: normal alternate alternate > animation-direction: normal alternate , normal , normal alternate > > since it says that commas go only before normal and not before > alternate. [] are needed, like this: > > Value: normal | alternate [, [ normal | alternate ] ]* This is still wrong - you actually need: Value: [ normal | alternate ] [, [ normal | alternate ] ]* This is hard to read and silly, and is the reason we introduced the # mutliplier, as fantasai explains. ~TJ
Received on Thursday, 29 March 2012 18:42:58 UTC