Skip to content

Add CSS Image Animation, currently image-animation & :animated-image #7459

@Schweinepriester

Description

@Schweinepriester

Summary

Introduces a new CSS property and pseudo-class to control and detect animated images like GIFs and APNGs. 1. image-animation: Can be set to "normal", "running", or "paused" to control image animation playback. 2. :animated-image: A pseudo-class to determine whether an image is animated.

Motivation

Currently, user agents autoplay animated images (e.g., GIF, WebP, PNG) by default. This behavior can be violate accessibility standards regarding pausing and stopping content. Site authors currently lack mechanisms to control this playback. The only existing methods are browser-specific global settings, which are inconsistent and lack the features needed for developers to build accessible, per-image playback interfaces.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions