W3C home > Mailing lists > Public > public-css-archive@w3.org > January 2018

Re: [csswg-drafts] [web-animations-1] Should async playback methods return the `ready` Promise?

From: Antoine Quint via GitHub <sysbot+gh@w3.org>
Date: Fri, 19 Jan 2018 09:16:57 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-358909288-1516353416-sysbot+gh@w3.org>
My immediate expectation when seeing:

```javascript
anim.play().then(() => {
    // do stuff
});
```

was indeed that it would run the callback _after_ the animation had finished. That's just how it reads to me.

-- 
GitHub Notification of comment by graouts
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2206#issuecomment-358909288 using your GitHub account
Received on Friday, 19 January 2018 09:17:03 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:23 UTC