W3C home > Mailing lists > Public > public-fx@w3.org > October to December 2011

Re: Comma separation in functional syntax (filters, transforms)

From: Dirk Schulze <vbs85@gmx.de>
Date: Wed, 14 Dec 2011 15:05:49 +0100
Cc: Simon Fraser <smfr@me.com>, public-fx@w3.org
Message-Id: <34C8D86A-986C-4630-98FA-A16035D5844A@gmx.de>
To: Tab Atkins Jr. <jackalmage@gmail.com>

> On Mon, Dec 12, 2011 at 6:11 PM, Simon Fraser <smfr@me.com> wrote:
>> CSS Filters [1] is using a comma-free syntax for arguments to the filter functions. This leads to things like:
>> 
>>  filter: gamma(0.5 0.2 0.2);
>> 
>> I think it's wrong for this to be different to transforms[2], which currently uses commas. We have to do one or the other, not mix and match.
>> 
>> Simon
>> 
>> [1] https://dvcs.w3.org/hg/FXTF/raw-file/tip/filters/index.html#FilterFunction
>> [2] http://dev.w3.org/csswg/css3-2d-transforms/
> 
> This change was made at my request to match other functions which we
> are attempting to develop in a comma-less manner when possible.

Maybe the comma in CSS3 transforms can get optional like for SVG transforms[1]? We would get a common pattern across CSS features.

Dirk

[1]  http://www.w3.org/TR/SVG/coords.html#TransformAttribute
Received on Wednesday, 14 December 2011 14:06:28 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:49:39 UTC