[csswg-drafts] [web-animations-1] Playing an animation should only replace unresolved ready promise (#11535)

cdoublev has just created a new issue for https://github.com/w3c/csswg-drafts:

== [web-animations-1] Playing an animation should only replace unresolved ready promise ==
The ready promise is replaced at step 11 of the procedure to [play an animation](https://drafts.csswg.org/web-animations-1/#play-an-animation) when `has pending ready promise` is `false`, which is its initial value and is set to `true` at step 9, when the animation has a pending play task or a pending pause task (which resolves the ready promise).

This [test](https://github.com/web-platform-tests/wpt/blob/8f3f629756d7351867a8be36d5f217608b9adc61/web-animations/interfaces/Animation/ready.html#L36) on WPT expects that a redundant call to play() after resolving the ready promise does not create a new ready promise .

Am I missing something or should step 11 replace the ready promise when `has pending ready promise` is `true`?

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11535 using your GitHub account


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

Received on Sunday, 19 January 2025 19:41:49 UTC