[Webkit-unassigned] [Bug 245232] New: Animated images ignore user's prefers-reduced-motion and Auto-Play preferences

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Sep 15 10:13:35 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=245232

            Bug ID: 245232
           Summary: Animated images ignore user's prefers-reduced-motion
                    and Auto-Play preferences
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Images
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: opendarwin at lapcatsoftware.com
                CC: sabouhallawa at apple.com

Created attachment 462360

  --> https://bugs.webkit.org/attachment.cgi?id=462360&action=review

Example HTML demonstrating the bug

Steps to reproduce:
1) Open System Preferences, Accessibility pane, Display tab, and enable "Reduce motion"
2) Open Safari Preferences, Websites, Auto-Play, and select "Never Auto-Play"
3) Load the attached "animated-images.html" page

Expected results: The images do not animate.
Actual results: The images do animate.

(The above steps are for Mac. It can also be reproduced on iPhone with similar steps.)

The 3 examples on the page use an mp4 URL for img src, div background-image, and video poster. (I already filed a related bug about videos as video posters: https://bugs.webkit.org/show_bug.cgi?id=239961 "<video> poster attribute allows another video".)

For reference, prefers-reduced-motion is described here: https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-motion

This disrespect for user preferences has always been a problem with animated GIFs, but animated GIFs predate Safari itself. With the rise of the mobile web, many sites moved away from GIFs because of inefficiency and large file sizes, as explained in the announcement that Safari 11.1 introduced support for mp4 video as an image format: https://webkit.org/blog/8216/new-webkit-features-in-safari-11-1/

Safari 16.1 will introduce support for animated AVIF, so this is going to become a larger problem over time. https://developer.apple.com/documentation/safari-release-notes/safari-16_1-release-notes

If other web browsers such as Chrome and Firefox also adopt newer, more efficient animated image formats like mp4, then it's likely that many web sites will switch from <video> elements to <img> elements and background-image attributes. This would take a lot of control away from the user, because animated images do not respect the user's preferences for reduced motion or auto-play. I expect that advertisers are keen on the prospect of unstoppable animated advertisements on the web. Even web browser extensions would have a very difficult time stopping these reliably.

I would also mention that video formats used as images do not have standard native video controls, which again takes away control from users.

The animated GIF problem was largely ignored by browser vendors in the past, but this is now an opportunity for WebKit to rethink the problem and solve it for web users.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220915/fed690b9/attachment.htm>


More information about the webkit-unassigned mailing list