implement support for script-created KeyframeEffects

RESOLVED FIXED

Status

()

Core
DOM: Animation
RESOLVED FIXED
3 years ago
2 years ago

People

(Reporter: birtles, Assigned: heycam)

Tracking

({meta})

Trunk
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(firefox43 affected)

Details

This probably involves the following pieces:

1. Implement KeyframeEffectReadOnly.getFrames()

http://w3c.github.io/web-animations/#dom-keyframeeffectreadonly-getframes
   * We should test that we get back expected results for CSS animations
     / transitions.

2. Implement the KeyframeEffect constructor (and add the interface)
   http://w3c.github.io/web-animations/#dom-keyframeeffect-keyframeeffect
   http://w3c.github.io/web-animations/#processing-a-frames-argument

http://w3c.github.io/web-animations/#convert-an-ecmascript-keyframe_like-object-to-an-idl-keyframe
   * Use getFrames() to test that we get back the correct frames.
   * As a first pass we could simplify this by NOT supporting:
     - SharedKeyframeList
     - PropertyIndexedKeyframe
     - support for animating attributes (i.e. CSS properties only)
     - 'composite' attribute on a keyframe
     - null offsets (i.e. spacing)
     - KeyframeEffectOptions (i.e. just take a double)

3. Implement AnimationEffectReadOnly.computedTiming (bug 1108055)
   Milan (a volunteer) started work on this with jwatt's help but never
   finished.

4. Implement support for passing KeyframeEffectOptions to the
   KeyframeEffect constructor
   http://w3c.github.io/web-animations/#dictdef-keyframeeffectoptions
   * Skip: 'spacing', 'composite', 'iterationComposite',
           'iterationStart', 'endDelay'
   * Test using AnimationEffectReadOnly.computedTiming

5. Implement support for null offsets (i.e. distribute spacing)
   * Test using getFrames()

6. Implement support for PropertyIndexedKeyframe
   * Test using getFrames()
Depends on: 1198708
Turning this into a meta-bug so we can implement the above pieces in their own bugs.
Depends on: 1108055
Keywords: meta
Summary: Implement KeyframeEffect constructor → implement support for script-created KeyframeEffects
Depends on: 1208951
Depends on: 1211783
No longer depends on: 1211783
Bug 1211783 tracks the KeyframeEffect interface and now that we can create KeyframeEffectReadOnly objects from script, I think this bug is done.
Status: ASSIGNED → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.