Closed Bug 1477920 Opened 8 years ago Closed 1 month ago

Provide a way to emulate prefers-reduced-motion media feature

Categories

(DevTools :: General, enhancement, P3)

enhancement

Tracking

(Accessibility Severity:s4, relnote-firefox 155+, firefox155 fixed)

RESOLVED FIXED
155 Branch
Accessibility Severity s4
Tracking Status
relnote-firefox --- 155+
firefox155 --- fixed

People

(Reporter: hiro, Assigned: sebo, Mentored)

References

(Blocks 1 open bug)

Details

(Keywords: access, dev-doc-needed)

Attachments

(1 file, 2 obsolete files)

We should provide an API to emulate the feature on DevTools.
Thanks Hiro. Blocking bug 1137699 is the right thing to do here, I believe we'll want a general media-query-emulation system in place for this.
Severity: normal → enhancement
Priority: -- → P3
See Also: → 1550804
Severity: normal → S3
Keywords: access

Is this bug still blocked? How is this different from emulating preferred color scheme? With "Directive (EU) 2019/882 on the accessibility requirements for products and services" inching closer and closer, it would be very useful to have quick toggle for prefers-reduced-motion in DevTools.

Mentor: emilio
Duplicate of this bug: 1811811

A new PrefersReducedMotionOverride flag has been added to the browsing context, which allows overriding the prefers-reduced-motion media query for a given browsing context.

Assignee: nobody → sebastianzartner
Status: NEW → ASSIGNED

A new toggle to simulate the prefers-reduced-motion media feature has been added to the Inspector's Rules View toolbar.

Note that I just added a new toggle button for that for now. Though we should start looking into how we can group all the emulation features (see bug 1692434 and https://github.com/firefox-devtools/ux/issues/134) to avoid further UI clutter.

Sebastian

Accessibility Severity: --- → s4
Depends on: 2032580

Comment on attachment 9569039 [details]
Bug 1477920 - [devtools] Added prefers-reduced-motion override to BrowsingContext. r=emilio,#devtools-reviewers,nchevobbe

Revision D293705 was moved to bug 2032580. Setting attachment 9569039 [details] to obsolete.

Attachment #9569039 - Attachment is obsolete: true
Attachment #9569040 - Attachment is obsolete: true
Pushed by sebastianzartner@gmail.com: https://github.com/mozilla-firefox/firefox/commit/a7ca6df65db5 https://hg.mozilla.org/integration/autoland/rev/52a58683fe5c [devtools] Added prefers-reduced-motion simulation toggle to Inspector. r=nchevobbe,devtools-reviewers,fluent-reviewers,devtools-backward-compat-reviewers,bolsson
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 155 Branch

Did you want to nominate this for the Fx155 relnotes? Possible wording:

Inspector now offers a toggle to simulate the prefers-reduced-motion setting.

Flags: needinfo?(sebastianzartner)

Yes, thanks for the reminder, Ryan! Note that we concluded that it's better to name those features "emulations" instead of "simulations". Also, this should be mentioned together with the related bug 1692434, which was used to rework the UI. I'd say it's fine to merge both notes, though feel free to split them into two.

[Why is this notable]: New emulation feature in the DevTools
[Affects Firefox for Android]: no
[Suggested wording]: The emulation options now got moved into a new emulation panel, available behind the @ button in the Rules View. And it also offers new toggles to emulate the prefers-reduced-motion media feature.
[Links (documentation, blog post, etc)]:
https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/At-rules/@media/prefers-reduced-motion

(The DevTools docs still need to be updated. Though if I get them in time, they could be linked.)

Sebastian

relnote-firefox: --- → ?
Depends on: 1692434
Flags: needinfo?(sebastianzartner)

I'm good with a single note covering both. Added to the Fx155 relnotes.

QA Whiteboard: [qa-triage-done-c156/b155]
Blocks: 2063851
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: