New issue
Advanced search Search tips

Issue 813908 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Feb 2018
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Web Animations: Document::getAnimations should include CSS animations that were just created

Project Member Reported by smcgruer@chromium.org, Feb 20 2018

Issue description

Currently Document::getAnimations doesn't clean style/layout before returning the animations.

This means the following fails:

console.log(document.getAnimations().length); // Say this is currently 0
element.classList.add('animateStyle');
console.log(document.getAnimations().length); // Still returns 0.
window.requestAnimationFrame(function() {
  console.log(document.getAnimations().length); // Now it returns 1.
});

The spec and Firefox immediately have the new animation in document.getAnimations().
 
Status: Fixed (was: Assigned)

Sign in to add a comment