Bug 247824 - Web Inspector: Show Accessibility Media Feature states like Inspector does with pseudo-classes
Summary: Web Inspector: Show Accessibility Media Feature states like Inspector does wi...
Status: RESOLVED DUPLICATE of bug 246882
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-11-11 14:02 PST by James Craig
Modified: 2022-12-07 07:04 PST (History)
4 users (show)

See Also:


Attachments
screen shot of Accessibility Inspector feature (49.31 KB, image/png)
2022-11-11 14:34 PST, James Craig
no flags Details
screen shot of web inspector pseudo class toggles (14.10 KB, image/png)
2022-11-11 14:36 PST, James Craig
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description James Craig 2022-11-11 14:02:06 PST
Web Inspector: Show Accessibility Media Feature states like Inspector does with pseudo-classes

There are a number of different states related to Accessibility @media features that are usable by web developers: (prefers-reduced-motion), (prefers-reduced-transparency), (prefers-contrast: more), etc. Xcode's Accessibility Inspector let's you toggle these to preview their effects, but most web devs don't download that tool.

It would be useful if the Web Inspector vended the same functionality, similar to how it does with pseudo-classes.
Comment 1 James Craig 2022-11-11 14:34:50 PST
Created attachment 463496 [details]
screen shot of Accessibility Inspector feature
Comment 2 James Craig 2022-11-11 14:36:23 PST
Created attachment 463497 [details]
screen shot of web inspector pseudo class toggles
Comment 3 Patrick Angle 2022-11-14 08:13:36 PST
Razvan has been working on making these available in https://github.com/WebKit/WebKit/pull/5650 for things that are exposed to the web platform.
Comment 4 Radar WebKit Bug Importer 2022-11-18 14:03:15 PST
<rdar://problem/102529542>
Comment 5 Razvan Caliman 2022-12-07 07:04:45 PST
Hi James, 

We implemented controls to override reduced motion and increased contrast in:
https://bugs.webkit.org/show_bug.cgi?id=246882

We opted for a dropdown UI instead of checkboxes because in Web Inspector we also need to represent the current system value that influences the inspected page before any of the overrides are applied.

I'll close this bug as a duplicate, but I encourage you to file issues for individual @media features overrides you want to see supported in Web Inspector and we'll try to implement them on a case-by-case basis.

*** This bug has been marked as a duplicate of bug 246882 ***