W3C home > Mailing lists > Public > www-style@w3.org > May 2012

[css3-transitions] Interpolation of integer values

From: Sylvain Galineau <sylvaing@microsoft.com>
Date: Wed, 30 May 2012 00:20:55 +0000
To: "www-style@w3.org" <www-style@w3.org>
Message-ID: <3C4041FF83E1E04A986B6DC50F0178290A358514@TK5EX14MBXC262.redmond.corp.microsoft.com>
I wanted to confirm my understanding of the resolution reached in Hamburg on the issue
highlighted as ISSUE 8 in the current /TR version [1].

The FXTF resolved [2]:

	RESOLUTION: copy SMIL's rounding of numbers to integers

>From the minutes I believe we are saying the value is interpolated in floating point
space but we clamp its computed value based on the Math.floor( interpolated-value + 0.5 )
formula defined by SMIL [3]. Is that correct? This implies animation from n to n+1 now
causes the change to happen half way through the value space vs. at the very beginning/end.

Which aligns with the round-to-nearest behavior we recently defined for the interpolation 
of font-weight values [4]. 

PS: should we cross-post the FXTF resolutions from 5/9 to www-style?

[1] http://www.w3.org/TR/css3-transitions/
[2] http://lists.w3.org/Archives/Public/public-fx/2012AprJun/0107.html
[3] http://www.w3.org/TR/SMIL/smil-profile.html#SMILProfileNS-animation-module
[4] http://lists.w3.org/Archives/Public/www-style/2012Mar/0655.html
Received on Wednesday, 30 May 2012 00:21:28 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:17 UTC