Closed Bug 1584859 Opened 6 years ago Closed 2 years ago

Smooth Scrolling and Autoscroll can be migraine triggers

Categories

(Core :: Layout: Scrolling and Overflow, defect, P1)

69 Branch
defect

Tracking

()

RESOLVED DUPLICATE of bug 1753565
Accessibility Severity s2

People

(Reporter: erwinm, Assigned: emilio)

References

Details

(Keywords: access)

Attachments

(1 obsolete file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:56.0) Gecko/20100101 Firefox/56.0 Waterfox/56.2.14

Steps to reproduce:

Firefox's default settings include smooth scrolling and autoscroll. Both of these can be migraine triggers. Many pages also insist on smooth scrolling and/or autoscroll regardless of user settings.

Defaults of new profiles:

Pages:

Proposals to use system prefs:

Miscellaneous:

Needinfo by request.

Flags: needinfo?(emilio)
Component: Preferences → Layout: Scrolling and Overflow
Product: Firefox → Core

Does setting general.smoothScroll to false fix the use cases here?

Fixing the site's smooth scrolling animations implemented via JS is probably not possible, but for the ones using native smooth scrolling that should work.

Flags: needinfo?(erwinm)

What I planned to do was to gate smooth scrolling on having prefersReducedMotion evaluating to false, but it seems we do have a switch for that already. It's probably still worth it though.

Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(emilio)

"Does setting general.smoothScroll to false fix the use cases here?"

It's a catch-22 when setting Firefox up. (Since smooth scrolling and the other animations make it hard to get through the intro screens and turn off smooth scrolling and the other animations.) It's not dealing with enough of the website animation afterwards.

Flags: needinfo?(erwinm)

If the assumption is correct that instant rather than smooth scrolling is better for all users with motion sensitivity (is that the case?), then it seems like disabling smooth scrolling when system-wide accessibility settings request reduced motion (which should match the (prefers-reduced-motion) media query, and appears at a quick glance to be implemented on all platforms) seems like a good idea. We should double-check that that disabling includes cases where pages use the ScrollBehavior in ScrollOptions to request smooth scrolling.

Priority: -- → P1

Yeah, I guess I should do that, even if we can't do anything about website animations using jQuery and such...

Flags: needinfo?(emilio)
Assignee: nobody → emilio
Flags: needinfo?(emilio)

We could put this change itself behind a pref too, if we considered that worth
it. But probably not so.

Anything else in the way of landing this? I don't think we need a pref.

Flags: needinfo?(emilio)

Yeah, see the review, need to check that this also does the right thing for programmatic auto-scrolling.

Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/77357e0aa88e Make smooth scrolling conditional on reduced motion settings. r=dbaron

There's a r+ patch which didn't land and no activity in this bug for 2 weeks.
:emilio, could you have a look please?
For more information, please visit auto_nag documentation.

Flags: needinfo?(emilio)

Failed some tests, gotta look into it.

Flags: needinfo?(emilio)
Flags: needinfo?(emilio)

Access-s2 because triggering migraines is pretty severe for users that experience this. That said, WCAG classifies this as a level AAA criterion, which suggests it is considered less severe by WCAG.

Whiteboard: [access-s2]

Bugs which would help disable this:

bug 1743045 would keep Javascript from overriding users' settings.

bug 1753565 would check prefers-reduced-motion.

Severity: normal → S3

The severity field for this bug is set to S3. However, the accessibility severity is higher, [access-s2].
:emilio, could you consider increasing the severity?

For more information, please visit auto_nag documentation.

Flags: needinfo?(emilio)
Flags: needinfo?(emilio)
See Also: → 1753565

Should we consider this as fixed by bug 1753565?

Accessibility Severity: --- → s2
Whiteboard: [access-s2]
Status: NEW → RESOLVED
Closed: 2 years ago
Duplicate of bug: 1753565
Resolution: --- → DUPLICATE
Attachment #9098427 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: