Repository navigation
Description
Description
Animated AVIF should stand as the modern solution for animated gifs. Unfortunately, implementation in Safari is bug-ridden in general, and all browsers exhibit performance issues around transparency.
Some argue that video is a superior solution for this use case, however, AV1, the most modern video codec, does not support transparency. When using older video codecs, cross-browser differences mean there is no straightforward solution to transparent video on the web. Safari supports VP9, but it does not support VP9 with transparency (bug report). Developers need to export the same video twice: once using the HEVC codec and again using the VP9 codec. VP9 is roughly double the size of AVIF. Animated AVIF, by contrast, does support transparency. <img> has the benefit of alt text and the lazy loading attribute.
Despite being utterly outdated, .gif files remain popular. According to the Web Almanac, in 2024 gif made up almost 17% of all image requests on the web. Usage of .gif actually increased in 2024:
Most surprisingly, the oldest and least efficient format of them all, GIF, picked up a percentage point, too.
Developers may not be asking specifically for animated AVIF en masse, but that's an awareness problem. There is clearly a high need for an animated image format and AVIF is increasingly popular.
I think part of the reason for the continued popularity of .gif is that the modern alternative is not entirely clear, but that alternative should be animated AVIF. Probably the best option right now is animated WebP but that tends to have larger file sizes than AVIF. Animated JPEG-XL could also potentially be another option, but the implementation of JPEG-XL in Safari does not support animation (even though the spec for JPEG-XL does include animation). The implementation of JPEG-XL in Chrome Canary (behind a flag) suffers from a bad frame rate. Here's the perspective of Jon Sneyers, who worked on the JPEG-XL spec:
Specification
web-feature
No response
Test Links
No response
Additional Signals
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone



Activity
github-actions commentedon Sep 4, 2025
This comment was automatically generated based on the information you provided. Please don't edit it.
Below is additional information about the web feature (from the web-features project) which is referenced in your proposal.
If this doesn't accurately correspond to your proposal, please update your initial comment to include
web-features: <feature-id>.To find feature IDs, use the web-features explorer.
Feature AVIF
svgeesus commentedon Sep 5, 2025
I'm seeing only one WPT for AVIF. Surely this needs a more full-fleshed-out testsuite, for Interop?
[-]Animated AVIF bugs and performance issues[/-][+]Modern gif replacement: Animated AVIF bugs and performance issues[/+]o-t-w commentedon Sep 7, 2025
Would it make sense to change it to an Investigation Effort rather than a Focus Area?
svgeesus commentedon Sep 13, 2025
It would also make sense to loop in major AVIF format contributors like @cconcolato @leo-barnes to help write, or port existing tests to WPT.
leo-barnes commentedon Sep 15, 2025
For web stuff you're much better off with @yguyon and @wantehchang. :)
wantehchang commentedon Sep 16, 2025
@vigneshvg Vignesh: Please take a look. Thanks!
wpt-interop commentedon Feb 12, 2026
Thank you for proposing Modern gif replacement: Animated AVIF bugs and performance issues for Interop 2026.
We want to let you know it was not selected to be part of Interop this year.
On behalf of the entire Interop team, thank you for submitting it for consideration. We got many more proposals than we could include in this year's project, necessitating some difficult choices. Please note this should not be taken as a comment on the technology as a whole, or our willingness to consider it for Interop in the future. We appreciate the work you put into your proposal, and would welcome your participation in future rounds of Interop.
Posted on behalf of the Interop team.