anvc / scalar

Born-digital, open source, media-rich scholarly publishing that’s as easy as blogging.
Other
231 stars 73 forks source link

Moving GIF Accessibility Issue #124

Open alexdryden opened 4 years ago

alexdryden commented 4 years ago

We currently restrict authors from using moving GIFs in Scalar because they can't be implemented in a way that meets accessibility standards. In order to conform to the guidelines in WCAG 2.0, there would need to be a pause/stop function on moving GIFs (https://www.w3.org/TR/UNDERSTANDING-WCAG20/time-limits-pause.html), and the default behavior on content pages would have to load the GIF in a paused state and restrict autoplay.

Anyway to include those features, or to restrict users from uploading moving GIFs?

eloyer commented 4 years ago

As far as we know, there isn't a programmatic way to control the playback of moving GIFs. There is apparently a JavaScript approach out there that could possibly be integrated into Scalar's file uploader, ideally connected to a per-install enable/disable setting. If you or others are interested in pursuing this, we'd be amenable to a pull request.