Re: [web-animations] Some specification issues

Hi Sergey,

Thanks for the feedback. Comments below.

On 2015/02/17 22:28, "Сергей Грехов" wrote:
> 1) WebIDL for KeyframeEffect
> (http://w3c.github.io/web-animations/#the-keyframeeffect-interfaces)
> contains the following
>
>      // Mutable additions to KeyframeEffectReadonly interface
>      inherit attribute DOMString spacing;
>      void                        setFrames (object frames);
>
> I think that spacing attribute is not an addition to
> KeyframeEffectReadonly interface but rather mutable override of its member

Right, but 'inherit' adds a setter to an attribute while inheriting its 
getter. So I think it's ok?

> 2) KeyframeEffectReadonly.clone() returns KeyframeEffect instance. It
> should return KeyframeEffectReadonly instance. Otherwise this method
> should be moved to KeyframeEffect interface

KeyframeEffectReadonly.clone() is the means for getting a mutable copy 
of a read-only KeyframeEffectReadonly object (or a KeyframeEffect 
object). So it needs to be on KeyframeEffectReadonly (the 
super-interface) and it needs to return a KeyframeEffect object.

We have the same pattern for AnimationReadonly.clone().

> 3) Definition of AnimationTimingReadonly.fill attribute
> (http://w3c.github.io/web-animations/#dom-animationtimingreadonly-fill) is
> the following:
>
> - If the animation node to which the fill mode is being is applied is an
> animation,
> Use none as the fill mode.
> - Otherwise,
> Use both as the fill mode.
>
> On level 1 we define only one type of animation node - animation. Does it
> makes sense describe fill behavior for non animation nodes here?

No, it doesn't. I'll fix that.

Thanks,

Brian

Received on Tuesday, 17 February 2015 20:24:03 UTC