Closed Bug 1804414 Opened 3 years ago Closed 3 years ago

Tabstrip switch-to-tab / scroll-into-view on an overflown tabstrip should not animate if the user has indicated they prefer reduced motion

Categories

(Firefox :: Tabbed Browser, defect, P3)

defect

Tracking

()

RESOLVED FIXED
111 Branch
Accessibility Severity s2
Tracking Status
firefox109 --- wontfix
firefox110 --- verified
firefox111 --- verified

People

(Reporter: Gijs, Assigned: cmkm)

References

(Blocks 1 open bug, Regressed 1 open bug)

Details

(Keywords: access, Whiteboard: [fidefe-quality-foundation])

Attachments

(2 files)

Steps to reproduce:

In Windows 10 Settings, in Display, set "Show animations in Windows" to Off.
Or on macOS, in the Accessibility system preferences, under "Display" tick the "Reduce motion" checkbox.

Alternatively, in Firefox about:config, set "ui.prefersReducedMotion" to integer 1. Restart Firefox.

Open a new tab when the tab bar is already full of open tabs and some tab early (leftward) in the list is selected.

Actual results:
The whole tab bar will glide rapidly to the new tab on the far right side.

Expected results:

The tab bar should jump instantaneously to the new tab instead of gliding.


It looks like the code responsible might be this bit of the arrowscrollbox code. Although we can work around this by checking for the prefers-reduced-motion media query from JS using matchMedia and altering the arguments we pass to scrollIntoView, I wonder if the DOM/layout code should be automatically not applying animated scrolling if that setting is enabled. That'd be something to take up with the DOM team - we may want to just apply a workaround in the meantime but we should still chase it as that'd improve website a11y.

Assignee: nobody → cmeador
Priority: P2 → P3

(In reply to :Gijs (he/him) from comment #0)

[...] I wonder if the DOM/layout code should be automatically not applying animated scrolling if that setting is enabled. [...]

Looks like this is being handled in Bug 1753565!

Attachment #9312739 - Attachment description: WIP: Bug 1804414 - Tabstrip animation should respect OS reduced motion pref → Bug 1804414 - Tabstrip animation should respect OS reduced motion pref
Attachment #9312739 - Attachment description: Bug 1804414 - Tabstrip animation should respect OS reduced motion pref → Bug 1804414 - Tabstrip animation should respect OS reduced motion pref r?Gijs
Pushed by cmeador@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2f4e4480086d Tabstrip animation should respect OS reduced motion pref r=Gijs,emilio
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 111 Branch

Since nightly and release are affected, beta will likely be affected too.
For more information, please visit auto_nag documentation.

The patch landed in nightly and beta is affected.
:cmkm, is this bug important enough to require an uplift?

  • If yes, please nominate the patch for beta approval.
  • If no, please set status-firefox110 to wontfix.

For more information, please visit auto_nag documentation.

Flags: needinfo?(cmeador)
Attached file Beta uplift request

Approval Request Comment
[Feature/Bug causing the regression]: Bug 1804414, Tabstrip animation isn't adhering to OS reduced motion pref
[User impact if declined]: Users with reduced motion pref will continue to see animation
[Is this code covered by automated tests?]: No, this fix is CSS-only
[Has the fix been verified in Nightly?]: Yes
[Needs manual test from QE? If yes, steps to reproduce]: Yes; STR in description
[List of other uplifts needed for the feature/fix]: N/a
[Is the change risky?]: Low risk
[Why is the change risky/not risky?]: This is a one-liner CSS fix affecting only scrollbox elements with smoothscroll=true attribute
[String changes made/needed]: N/a

Flags: needinfo?(cmeador)
Attachment #9313855 - Flags: approval-mozilla-beta?

Comment on attachment 9313855 [details]
Beta uplift request

Approved for 110 beta 6, thanks.

Attachment #9313855 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
QA Whiteboard: [qa-triaged]

I have reproduced the issue on Win 10 x64 with STR from comment 0, on an affected Nightly build (2022-12-07).

The issue is verified as fixed on latest Nightly 111.0a1 and Beta 110.0b6 under Win 10 x64 and macOS 11.

Accessibility Severity: --- → s2
Whiteboard: [access-s2][fidefe-quality-foundation] → [fidefe-quality-foundation]
See Also: → 1825681
See Also: → 1874550
Regressions: 1871360
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: