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

[css3 images] ambiguous form of radial gradient

From: Simon Fraser <smfr@me.com>
Date: Wed, 05 Jan 2011 20:39:04 -0800
Message-id: <5F2AB8F6-6184-4A30-920B-580517EF58D4@me.com>
To: www-style list <www-style@w3.org>
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}.

Simon
Received on Thursday, 6 January 2011 04:43:38 GMT

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