Open Bug 1524874 Opened 5 years ago Updated 2 years ago

The preference for prefers-reduced-motion should be boolean instead of integer

Categories

(Core :: Widget, defect, P5)

65 Branch
defect

Tracking

()

People

(Reporter: jelle, Unassigned)

References

Details

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:65.0) Gecko/20100101 Firefox/65.0

Steps to reproduce:

I noticed the prefers-reduced-motion:reduce media query would always be truthy on my system. Even when I set the about:config flag ui.prefersReducedMotion to false.

Actual results:

Websites using the prefers-reduced-motion:reduce won't be animated anymore.

Expected results:

I've seen quite a few people complain that disabling animations in what they think would only affect their desktop environment suddenly also changes the way their browser behaves.

I disabled Gnome Shell animations because they're damn slow and annoying, but a simple scroll-behavior: smooth on a website is no problem for me, it even gives me a sense of direction on a website.

I think it's a bad idea to hook this into the "disable animations" preference on an OS. Mac OS has a special "Reduce motion" preference, which seems to make much more sense.

But I definitely expect ui.prefersReducedMotion to override that setting. Now I have to choose between broken Gnome Shell animations & (for me) an unpleasant browsing experience.

Component: Untriaged → CSS Parsing and Computation
OS: Unspecified → Linux
Product: Firefox → Core
Hardware: Unspecified → x86_64

At least the fact that you cannot override it should be a bug.

Blocks: 1478519
Component: CSS Parsing and Computation → Widget: Gtk

(In reply to jelle from comment #0)

But I definitely expect ui.prefersReducedMotion to override that setting. Now I have to choose between broken Gnome Shell animations & (for me) an unpleasant browsing experience.

If you make the preference a number instead of a boolean it does override it, can you confirm that?

It works for me. Just to confirm, the preference is a number value, did you add the pref as a number? I know it's not intuitive at all.

Flags: needinfo?(jelle)

(In reply to Emilio Cobos Álvarez (:emilio) from comment #2)

If you make the preference a number instead of a boolean it does override it, can you confirm that?

Correct, removing the entry (by resetting it & then restarting the browser, didn't find any other way to change the type of the entry) and creating it again as an integer did fix it, thanks!

Flags: needinfo?(jelle)

Thanks. That's said, it's not intuitive, we should use a boolean preference instead. I don't know the historical reason that why we don't use any boolean preference in nsXPLookAndFeel though, I am going to re-use this bug for it.

Status: UNCONFIRMED → NEW
Component: Widget: Gtk → Widget
Ever confirmed: true
OS: Linux → All
Priority: -- → P5
Hardware: x86_64 → All
Summary: Firefox enables prefers-reduced-motion when disable Gnome-Shell animations → The preference for prefers-reduced-motion should be boolean instead of integer
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.