- From: Tab Atkins Jr. <jackalmage@gmail.com>
- Date: Mon, 21 Feb 2011 22:15:11 -0800
- To: Øyvind Stenhaug <oyvinds@opera.com>
- Cc: "www-style@w3.org" <www-style@w3.org>
On Mon, Feb 21, 2011 at 9:43 AM, Øyvind Stenhaug <oyvinds@opera.com> wrote: > Hi, > > the syntaxes for the various gradient functions seem to be missing some > brackets. For instance, in 5.1.1 > > > <linear-gradient> = linear-gradient( > [ > [ [top | bottom] || [left | right] ] > | > <angle> > ,]? > <color-stop>[, <color-stop>]+ > ); > > should presumably be > > <linear-gradient> = linear-gradient( > [[ > [ [top | bottom] || [left | right] ] > | > <angle> > ],]? > <color-stop>[, <color-stop>]+ > ); > > (or however you want to format it), since juxtaposition is stronger than the > bar. Similarly for the other three gradient variants. I was assuming that the | applied only to a single item on each side, and thus wouldn't grab the following comma. Is there a useful strict formulation of precisely how the property grammar works so I can ensure things are well-formed? ~TJ
Received on Tuesday, 22 February 2011 06:16:04 UTC