[csswg-drafts] Pull Request: [web-animations-1] fix code example by handling `Animation.finished` with `.then()`

ninevra has just submitted a new pull request for https://github.com/w3c/csswg-drafts:

== [web-animations-1] fix code example by handling `Animation.finished` with `.then()` ==
[A code example](https://w3c.github.io/csswg-drafts/web-animations-1/#example-515a2006) calls `Animation.finished()` with a callback function. [`Animation.finished`](https://w3c.github.io/csswg-drafts/web-animations-1/#dom-animation-finished) is a promise and not callable. This PR changes the code example to use `Animation.finished.then()`, not `Animation.finished()`.

See https://github.com/w3c/csswg-drafts/pull/8351


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 23 January 2023 03:55:51 UTC