- From: Brian Birtles <bbirtles@mozilla.com>
- Date: Thu, 09 Apr 2015 15:36:41 +0900
- To: Aleksei Semenov <a.semenov@unipro.ru>, "public-fx@w3.org" <public-fx@w3.org>
- CC: "dom@unipro.ru" <dom@unipro.ru>
On 2015/03/06 15:35, Aleksei Semenov wrote: > Hello, everyone. > > The definition of the AnimationPlayer.currentTime attribute reads: > ( https://w3c.github.io/web-animations/#dom-animationplayer-currenttime ) > >> currentTime, of type double, nullable >> The current time of this player unless this playerhas a pending pause >> task, in which case this attribute returns null. > > The current time is essentially a time value, which can be resolved or > unresolved. Unresolved time value is by convention equal to null. There are two parts to the spec: the model and the API. In the model we talk about unresolved times. In the API, unresolved times are represented by null values.[1] Since this behavior is specific to the API, we use null there. It's a bit confusing but we were asked to split the spec up like this and I don't know how to make it any more clear. Best regards, Brian [1] https://w3c.github.io/web-animations/#time-values-in-the-programming-interface
Received on Thursday, 9 April 2015 06:37:03 UTC