Skip to content

No load or error event for <video poster> #8445

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
zcorpan opened this issue Oct 27, 2022 · 1 comment
Open

No load or error event for <video poster> #8445

zcorpan opened this issue Oct 27, 2022 · 1 comment
Labels
addition/proposal New features or enhancements needs implementer interest Moving the issue forward requires implementers to express interest topic: media

Comments

@zcorpan
Copy link
Member

zcorpan commented Oct 27, 2022

While writing tests for #8428 I needed to use ResizeObserver to detect when the poster image is loaded, because there are no events fired for the poster image being loaded or failing to load.

If you specify the correct dimensions with <video width height> then it's not possible to use ResizeObserver, either.

Would it be useful for web developers to have events here? e.g. posterload and postererror.

cc @whatwg/media

@zcorpan zcorpan added addition/proposal New features or enhancements needs implementer interest Moving the issue forward requires implementers to express interest topic: media labels Oct 27, 2022
@jdm
Copy link
Member

jdm commented Apr 19, 2025

This is also helpful for writing tests that verify that the poster image is affected by things like CSP, mixed content, etc. Servo has event handlers that are test-only to work around this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
addition/proposal New features or enhancements needs implementer interest Moving the issue forward requires implementers to express interest topic: media
Development

No branches or pull requests

2 participants