W3C home > Mailing lists > Public > www-svg@w3.org > April 2011

Re: Animating mixed units

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 06 Apr 2011 10:28:42 -0700
Message-ID: <4D9CA2CA.40505@mit.edu>
To: Jérémie Patonnier <jeremie.patonnier@gmail.com>, "www-svg@w3.org" <www-svg@w3.org>
On 4/6/11 10:20 AM, Cameron McCormack wrote:
> Boris Zbarsky:
>> For what it's worth, the way this works in Mozilla is that animating
>> from Npx to M% sets the style at time t to -moz-calc((1-t)*Npx + t*M%).
>
> Is this only with CSS properties?

Yes, this is only for properties and attributes that are handled via 
CSS.  Good point.

> I believe for attributes like r="" on
> a<circle>  that the value at any given time is converted into the second
> value’s units.

That seems right.

-Boris
Received on Wednesday, 6 April 2011 17:29:12 GMT

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