Re: [css3-images] <side-or-corner> defined twice, differently

On Sun, Sep 11, 2011 at 2:14 PM, L. David Baron <dbaron@dbaron.org> wrote:
> The <side-or-corner> production is defined in two different places
> in css3-images.  In
> http://dev.w3.org/csswg/css3-images/#linear-gradients it is defined
> as:
>  # <side-or-corner> = [left | right] || [top | bottom]
> whereas in http://dev.w3.org/csswg/css3-images/#repeating-gradients
> it is defined as:
>  # <side-or-corner> =
>  #   [ [left | right] || [top | bottom] ] |
>  #   [ [start | end] || [before |after] ]
>
> It seems to me that it should be defined in only one place, and it
> should have only one definition.
>
> (I'm guessing that the addition of start/end/before/after was
> intended to apply to both repeating and non-repeating gradients, and
> the second definition is the correct one.)

Whoops, indeed.  No idea how I didn't copy the definition over.

You're right that it should be defined in only one place.  I'll fix
the linear-gradient definition, and then just link to that from
repeating-gradient.

~TJ

Received on Monday, 12 September 2011 09:05:14 UTC