[csswg-drafts] [web-animations-1] Animation::CurrentTime WebIDL (#5429)

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

== [web-animations-1] Animation::CurrentTime WebIDL ==
I think, that because the current time is actually a value that is calculated in "4.4.3. The current time of an animation", then in the WebIDL the `current time` should not be defined as an attribute, but as two functions: get/set. That will also remove the first step of the "silently set the current time" algorithm because the seek time can be defined to be a `finite double` in the "set" function. The "get" will remain to be unrestricted double as it is now. 

That also points me to the `id` attribute of an `Animation`, that is only used for debug purposes, and by my opinion its not a task of a specification to define how the objects are going to debugged, neither to how they will be distinguished between each other, if that is nowhere used in the specification itself. If other specifications are using that field, then maybe that should be defined in the relevant specifications and their WebIDL.

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 14 August 2020 09:03:03 UTC