[csswg-drafts] [css-animations] Change AnimationEvent 'elapsedTime' parameter to double?

stephenmcgruer has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-animations] Change AnimationEvent 'elapsedTime' parameter to double? ==
Currently elapsedTime is a float: https://drafts.csswg.org/css-animations/#dom-animationevent-elapsedtime

elapsedTime, of type float, readonly , of type float, readonly
The amount of time the animation has been running, in seconds, when this event fired, excluding any time the animation was paused. The precise calculation for of this member is defined along with each event type.

But the web-idl spec says: https://heycam.github.io/webidl/#idl-float

Unless there are specific reasons to use a 32 bit floating point type, specifications should use double rather than float, since the set of values that a double can represent more closely matches an ECMAScript Number.


Is there a good reason we're using float for AnimationEvent?

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2651 using your GitHub account

Received on Monday, 7 May 2018 15:51:20 UTC