Re: [css3 images] ambiguous form of radial gradient

On Wed, Jan 5, 2011 at 8:39 PM, Simon Fraser <smfr@me.com> wrote:
> The radial gradient syntax at <http://dev.w3.org/csswg/css3-images/#radial-gradients> is:
>
> <radial-gradient>
> = radial-gradient(
>        [<bg-position>,]?
>        [
>                [<shape> || <size>]
>                |
>                [<length> | <percentage>]{2}
>        ,]?
>        <color-stop>[, <color-stop>]+
> )
>
> This allows for some ambiguity with a gradient like:
>
>  background-image: radial-gradient(10% 10%, blue, green);
>
> since it's unclear if the first two <length> values refer to
> the <bg-position>, or to the [<length> | <percentage>]{2}.

Hm, indeed.  I'll specify that such a production is setting the first
argument and defaulting the second argument.

Thanks!

~TJ

Received on Monday, 10 January 2011 19:19:32 UTC