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

Re: [css3 images] ambiguous form of radial gradient

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 10 Jan 2011 11:18:40 -0800
Message-ID: <AANLkTikihqkjjDNVB2KLg6EyD7s7YHJsN-cccex2wTdj@mail.gmail.com>
To: Simon Fraser <smfr@me.com>
Cc: www-style list <www-style@w3.org>
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 GMT

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