W3C home > Mailing lists > Public > www-svg@w3.org > July 2009

Re: filterRes

From: Robert O'Callahan <robert@ocallahan.org>
Date: Wed, 15 Jul 2009 14:26:59 +1200
Message-ID: <11e306600907141926r4ff26c3dk17d671093bf1749c@mail.gmail.com>
To: "Dr. Olaf Hoffmann" <Dr.O.Hoffmann@gmx.de>
Cc: www-svg@w3.org
2009/7/14 Dr. Olaf Hoffmann <Dr.O.Hoffmann@gmx.de>

> another problem I observed for filterRes comparing the behaviour
> of Opera and the adobe plugin is, what happens ich non-integers
> are noted as attribute values.
> Because filterRes is specified to be of the type
> <number-optional-number>
> such values as '0.5' or '4.2 4.8' are possible,
> however the interpretation seems to be undefined
> or is different in viewers. Opera seems to round
> down non-integers, the adobe plugin rounds to
> the nearest integer (I did not look into detail for
> the case integer+0.5). This results in different
> effects especially within animation to fade in/out
> objects by changing the filterRes to small
> numbers (continuously).
>

We (Mozilla) round to the nearest integer, rounding 0.5 up to 1. I agree the
spec need to specify the rounding method.

Rob
-- 
"He was pierced for our transgressions, he was crushed for our iniquities;
the punishment that brought us peace was upon him, and by his wounds we are
healed. We all, like sheep, have gone astray, each of us has turned to his
own way; and the LORD has laid on him the iniquity of us all." [Isaiah
53:5-6]
Received on Wednesday, 15 July 2009 02:27:40 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:42 GMT