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

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

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 21 Feb 2011 22:15:11 -0800
Message-ID: <AANLkTimKO2bYLtocUgPTOT95SxQsQRPhgnEx9Ngk1Yo5@mail.gmail.com>
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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:37 GMT