Closed Bug 1734195 Opened 3 years ago Closed 1 year ago

DevTools highlighters should avoid flashing the screen when prefers-reduced-motion is on

Categories

(DevTools :: General, defect, P2)

defect

Tracking

(firefox111 fixed)

RESOLVED FIXED
111 Branch
Tracking Status
firefox111 --- fixed

People

(Reporter: jdescottes, Assigned: jdescottes)

References

Details

Attachments

(2 files)

DevTools highlighters can cause very quick color flashes on the screen if they are applied on big elements. When prefers-reduced-motion is enabled we should try to use less intrusive visuals. Maybe draw borders only instead of filled rectangles, however this might be an issue when highlighting items which are bigger than the viewport?

Maybe very light stripes + borders could be a decent compromise.

Type: enhancement → defect
Component: Accessibility Tools → General
Whiteboard: [devtools-triage]
Priority: P3 → P2
Flags: needinfo?(jdescottes)
Whiteboard: [devtools-triage]
Attached image flashing_example.gif

(sorry for the watermark)
Just hover in the markup view. Depending on the page and the elements you hover the effect will probably not be as bad, but you get the idea.

Flags: needinfo?(jdescottes)

When prefers-reduced-motion is enabled, the most impacting highlighters can use stroke instead of fill.
This requires to join the paths on the JS side, otherwise the change is purely handled in CSS.

Assignee: nobody → jdescottes
Status: NEW → ASSIGNED
Duplicate of this bug: 1731937
Pushed by jdescottes@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/74997b9cb4ba
[devtools] use stroke instead of fill for main highlighters when prefers-reduced-motion is on r=nchevobbe
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 111 Branch
Blocks: 1817639
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: