Re: [web-animations] computedTiming.iterationStart and fill attributes

On 2014/12/15 16:00, Сергей Грехов wrote:
> Hi All,
>
> It's unclear from the spec what values should return
> computedTiming.iterationStart and fill attributes for some values.

This should be fixed in:
https://github.com/w3c/web-animations/commit/5d43856e957bffd9dc1ec28b286197d9ac8ec3d9

Thanks.

> Example:
>
>      var timing = {
>          iterationStart: -100,
>          duration: 1000
>      };
>      var animation = new Animation(target, [], timing);
>      var player = document.timeline.play(animation);
>
>      animation.computedTiming.iterationStart == ? // -100 or 0?
>      animation.computedTiming.fill == ? // 'auto' or 'none'?
>
> Specification only reads that these attributes of computed timing return
> fill mode and iteration start properties of animation node. For timing
> calculations
> (http://w3c.github.io/web-animations/#dom-animationtiming-iterationstart)
> "Values less than zero are clamped to zero for the purpose of timing model
> calculations." and
> (http://w3c.github.io/web-animations/#dom-animationtimingreadonly-fill)
> "When performing timing calculations the special value auto is expanded to
> one of the fill modes recognized by the timing model..."
>
> But what shoul be returned by computedTiming? Original value or the one
> that used for timing calculations?
>
> --
> Sergey G. Grekhov
>
>
>

Received on Wednesday, 24 December 2014 06:53:28 UTC