web-platform-tests / wpt

Test suites for Web platform specs — including WHATWG, W3C, and others
https://web-platform-tests.org/
Other
4.91k stars 3.06k forks source link

No way to test animated content #7759

Open gsnedders opened 6 years ago

gsnedders commented 6 years ago

Realistically, we're never going to do frame-by-frame testing of animation. From memory, most browsers have APIs to pause animations at a certain time offset and then screenshot that.

birtles commented 6 years ago

Yeah, we do that either using the Web Animations API, or using various combinations of step timing functions and negative delays to seek the animation to different points. More commonly, though, we just do script-based tests and call getComputedStyle.

kereliuk commented 6 years ago

@birtles Do you know of any existing manual tests that require this?

birtles commented 6 years ago

I don't know for sure but there may be some in css-animations/css-transitions.

Ultimately, though, I don't think there is any need for manual tests of animations. If there are manual tests in css-animations/css-transitions we should double-check the same functionality is covered by automated tests and then remove them. I am very gradually rewriting all the tests in css-animations / css-transitions so I'll do that when I get to them.

gsnedders commented 6 years ago

Certainly there are SVG manual tests which test animation, somewhere in svg/.