Skip to content

Instantly share code, notes, and snippets.

@marcysutton
Last active January 31, 2023 22:07
Show Gist options
  • Star 106 You must be signed in to star a gist
  • Fork 7 You must be signed in to fork a gist
  • Save marcysutton/0a42f815878c159517a55e6652e3b23a to your computer and use it in GitHub Desktop.
Save marcysutton/0a42f815878c159517a55e6652e3b23a to your computer and use it in GitHub Desktop.
Enable Chrome Accessibility Experiment

NOTE: This is no longer an experiment! You can use the accessibility inspector in Chrome Devtools now, including a fantastic color contrast inspection tool. Read more: https://developers.google.com/web/updates/2018/01/devtools#a11y


Just like any good element inspector helps you debug styles, accessibility inspection in the browser can help you debug HTML and ARIA exposed for assistive technologies such as screen readers. There's a similar tool in Safari (and reportedly one in Edge) but I like the Chrome one best.

As an internal Chrome experiment, this tool differs from the Accessibility Developer Tools extension in that it has privileged Accessibility API access and reports more information as a result. You can still use the audit feature in the Chrome Accessibility Developer Tools, or you could use the aXe Chrome extension. :)

To enable the accessibility inspector in Chrome stable:

  1. Go to chrome://flags/#enable-devtools-experiments to enable Devtools experiments Chrome flags with Developer Tools Experiments enabled
  2. Open developer tools, go to Settings (Devtools menu or Chrome customization menu) Chrome devtools settings
  3. In Settings, go to Experiments and enable "Accessibility Inspection" Settings Experiments
  4. Restart developer tools.
  5. In the element inspector, a new "Accessibility" tab has been added to "Styles". Use it to inspect accessibility nodes to see an element's computed name, role, etc. Accessibility inspection of Soundcloud search field
@jorgecas99
Copy link

Many developers including myself have long coded without accessibility in mind. thank you for sharing, this is a great way to stay on top of it so it's not forgotten!

@hirejohnsalcedo
Copy link

hirejohnsalcedo commented Mar 27, 2017

@marcysutton Thank you for sharing this. By the way, you may also directly link to chrome://flags/#enable-devtools-experiments instead of just chrome://flags to more easily find the settings.

Also, in Step 3, for others who would initially do it the way I did. Instead of opening Google Chrome's settings, open the settings inside the developer tools accessed by pressingF12 F1.

Best regards!

@selfthinker
Copy link

selfthinker commented Nov 20, 2017

I needed to restart Chrome after the first step (enabling DevTools experiments). Or else the "Experiments" tab was missing from the settings, so I couldn't do step 3 without restarting.

@primerproyecto
Copy link

Thank you. Gracias

@backwardok
Copy link

@marcysutton looks like this now comes out of the box in Chrome! 🎉 https://developers.google.com/web/updates/2018/01/devtools#a11y

@killerplay970
Copy link

chrome://flags/#enable-devtools-experiments

@wilsolutions
Copy link

Wow! That's really handy êh! +100000 for sharing =D

@evolutionxbox
Copy link

evolutionxbox commented Sep 7, 2018

This seems to have been removed in Chrome v69:

image

It may have been moved to the audits panel, but that doesn't seem to be useful.

@MarcusMorba
Copy link

YES. Thats Chrome 72 OS X.
image

@marcysutton
Copy link
Author

Hi everyone, the Audits tab is different–that runs axe-core as part of Lighthouse for accessibility checks. The functionality in this gist is now in Chrome Devtools proper: https://developers.google.com/web/updates/2018/01/devtools#a11y

@Lilkedus
Copy link

Hey everyone, so I was trying to enable devtools experimental in chrome flags and when I type it in or when I click on a link which directs me to that specific setting, I can't find it. All the articles I read on how to enable this setting, all use a mac as their system so I was wondering is this a mac thing, or is this for windows as well? And if it's not a mac thing then how do I fix this problem
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment