Re: [css3-images] Missing brackets in gradient value types

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