web-animations / web-animations-js

JavaScript implementation of the Web Animations API
http://web-animations.github.io
Apache License 2.0
3.77k stars 407 forks source link

Error when playing a nested sibling fill forwards group effect #215

Open alancutter opened 5 years ago

alancutter commented 5 years ago

Repro:

document.timeline.play(
    new SequenceEffect([
      new GroupEffect([new KeyframeEffect(null, [], 100)]),
      new GroupEffect([new KeyframeEffect(null, [], 100)], {fill: 'forwards'}),
    ])
);

Stack trace:

web-animations-next-animation.js:133 Uncaught TypeError: Cannot read property '_setExternalAnimation' of undefined
    at b.Animation._setExternalAnimation (web-animations-next-animation.js:133)
    at b.Animation._setExternalAnimation (web-animations-next-animation.js:133)
    at Object.b.bindAnimationForGroup (group-constructors.js:199)
    at b.Animation._rebuildUnderlyingAnimation (web-animations-next-animation.js:95)
    at new b.Animation (web-animations-next-animation.js:39)
    at b.AnimationTimeline._play (timeline.js:48)
    at b.AnimationTimeline.play (timeline.js:65)
    at <anonymous>:1:19