W3C home > Mailing lists > Public > public-fx@w3.org > January to March 2015

Re: [web-animations] Not clear behaviour for invalid cubic bezier timing function

From: Brian Birtles <bbirtles@mozilla.com>
Date: Tue, 10 Feb 2015 11:13:22 +1100
Message-ID: <54D94D22.3070806@mozilla.com>
To: public-fx@w3.org
On 2015/02/03 17:07, "Сергей Грехов" wrote:
> Hi all,
> It is said in the specification
> (http://w3c.github.io/web-animations/#typedef-cubic-bezier-timing-function)
> cubic-bezier(<number>, <number>, <number>, <number>)
>      Specifies a cubic Bézier timing function. The four numbers specify
> points P1 and P2 of the curve as (x1, y1, x2, y2). Both x values must
> be in the range [0, 1] or the definition is invalid.
> It is also said in the spec
> (http://w3c.github.io/web-animations/#dom-animationtiming-easing) that:
> Unrecognized string values or values that correspond to a timing function
> that is not supported for the type of animation node to which this
> property is applied are treated as if the linear keyword was specified for
> the purpose of timing model calculations.
> But it is not quite clear what behaviour should be if there are values
> outside [0, 1] range and definition is invalid? Should invalid
> cubic-bezier definition be treated as linear?

Yes, that's correct. Perhaps it would be more clear if I replaced 
"Unrecognized string values" with "Unrecognized or invalid string values"?

I've made that change here:


Please let me know if this addresses the problem.

Best regards,

Received on Tuesday, 10 February 2015 00:13:51 UTC

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