New issue
Advanced search Search tips

Issue 828585 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug

Blocking:
issue 772407



Sign in to add a comment

Web Animations: Animations must be accessible from the Document their effect targets

Project Member Reported by smcgruer@chromium.org, Apr 3 2018

Issue description

Per the spec, Document::getAnimations() must report all Animations whose target effect is the given document.

Currently this can fail in Chrome because we actually list Animations in the DocumentTimeline they are attached to, not the Document. E.g.

  const target = iframe.contentDocument.getElementById("target");
  const effect = new KeyframeEffect(target, [ { backgroundColor: 'green' }, { backgroundColor: 'red' } ], 10000);
  const anim = new Animation(effect, document.timeline);
  anim.play();

In the above case, 'anim' hangs off of the main Document's DocumentTimeline, and so the iframe Document doesn't see it for getAnimations()!

This will likely be quite tricky to solve; we need to figure out where to hang Animations that have no target as well.

Firefox implements this correctly.
 
index.html
768 bytes View Download
iframe.html
114 bytes View Download
Blocking: 772407
Description: Show this description
Description: Show this description

Sign in to add a comment