-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Import APNG tests from https://philip.html5.org/tests/apng/tests.html #5546
Comments
There's a number that test animation which inherently cannot be reftests. |
What kinds of APIs would we need on the web platform or as part of WebDriver/something in order to be able to test animation? |
TL;DR: Something like Chromium's advanceImageAnimation (advance to a particular frame) would allow us to test more. I think it would depend on exactly what we're testing:
|
Would something like advanceImageAnimation be useful for web authors as well, or would it be better to pursue that as a test-only API? How does it work, does it synchronously decode up the requested frame? |
I am not a web author myself, so I am not the right person to ask, but it could be. Maybe they want to synchronize images (I might be wrong about this, but I think different browsers behave differently with respect to keeping animated images in sync when they go off screen) or change what frame they're on relative to each other, but that might be an inelegant way to do what they want to do.
It advances one frame at a time, but it could be made to advance to an index, I suppose. I think it is synchronous, although I'm not positive. It looks to change the current frame and then notify observers, and I think that will result in redrawing with the new frame. |
Oops - Chromium won't synchronously decode; decoding is done in another thread. |
Just came across this issue, after having done a manual conversion of these tests to WPT. Mostly reftests, but a few have to be Also I used const el = document.querySelector(".reftest-wait");
setTimeout(() => {
el.classList.remove('reftest-wait');
}, "3000"); This is just to get a snapshot after the animation has finished. The reference is a static PNG of the end of the animation, usually the last frame. I also added |
https://philip.html5.org/tests/apng/tests.html
If any of these cannot be converted to reftests, then some more bugs with the "infra" label might be in order.
@LeonScroggins
The text was updated successfully, but these errors were encountered: