Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit 0791121

Browse files
committed
Bug 1753565 - Disable prefers-reduced-motion for tests. r=botond
Disable the prefers-reduced-motion preference for mochitests and web-platform-tests. Depends on D172446 Differential Revision: https://phabricator.services.mozilla.com/D174956
1 parent a887a52 commit 0791121

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

testing/profiles/mochitest/user.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@ user_pref("javascript.options.asyncstack_capture_debuggee_only", false);
1313
// is suppressed, synthetic click events and co. go to the old page, which can
1414
// be confusing for tests that send click events before the first paint.
1515
user_pref("nglayout.initialpaint.unsuppress_with_no_background", true);
16+
17+
// Disable prefers-reduced-motion to ensure that smooth scrolls can be tested.
18+
user_pref("general.smoothScroll", true);

testing/profiles/web-platform/user.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,5 @@ user_pref("remote.experimental.enabled", true);
8383
user_pref("privacy.partition.always_partition_third_party_non_cookie_storage", false);
8484
// Disable OCSP checks in WPT (webtransport triggers these occasionally)
8585
user_pref("security.OCSP.enabled", 0);
86+
// Disable prefers-reduced-motion to ensure that smooth scrolls can be tested.
87+
user_pref("general.smoothScroll", true);

0 commit comments

Comments
 (0)