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

Re: Filter Templates

From: Robert O'Callahan <robert@ocallahan.org>
Date: Mon, 7 Feb 2011 14:05:14 +1300
Message-ID: <AANLkTikdzQZe8NVHeOEpANEZbK3xv5TOMSfsHXwg6ppT@mail.gmail.com>
To: Rik Cabanier <cabanier@adobe.com>
Cc: Cameron McCormack <cam@mcc.id.au>, Brad Kemper <brad.kemper@gmail.com>, www-style list <www-style@w3.org>, "public-fx@w3.org" <public-fx@w3.org>
On Mon, Feb 7, 2011 at 1:45 PM, Rik Cabanier <cabanier@adobe.com> wrote:

> > Individual CSS filters should be simple so that authors find them easy to
> use. I suspect authors will find it difficult to remember how to use a
> function with
> > nine parameters, as you have proposed.
> The parameters are optional. If you don't specify them, they will fall back
> to the default value.
>

That's not so easy the way you've proposed it. For example, if you want an
inner shadow you have to specify eight parameters.

Apart from that, I think asking authors to read dropshadow(10px, 10px, 3,
red, 10deg, 20px, 0.6, inner) and understand what all the parameters mean in
their positions is a bit burdensome.

Looking at the complexity of doing a dropshadow in SVG, a single function
> seems a lot simpler.
>

Complexity isn't solely determined by the number of characters you have to
write. SVG filters are verbose but the individual components that you write
are quite simple. The whole may be easier to understand even if it's longer
to write out than a single Swiss-army-knife function value.

Rob
-- 
"Now the Bereans were of more noble character than the Thessalonians, for
they received the message with great eagerness and examined the Scriptures
every day to see if what Paul said was true." [Acts 17:11]
Received on Monday, 7 February 2011 01:05:47 GMT

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