DevTools highlighters should avoid flashing the screen when prefers-reduced-motion is on
Categories
(DevTools :: General, defect, P2)
Tracking
(firefox111 fixed)
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.
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Assignee | ||
Comment 1•1 year ago
|
||
(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.
Assignee | ||
Comment 2•1 year ago
|
||
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.
Updated•1 year ago
|
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
Comment 5•1 year ago
|
||
bugherder |
Description
•