«   Previous tip Next tip   »

Chrome DevTools: Better accessibility inspection with the Source Order Viewer

Last updated: 30th July 2021
Better accessibility inspection with the Source Order Viewer

Introduction

The Source Order Viewer shows you the order of elements as defined in the document source. Using this feature can help improve the experience for people using assistive technology.

To do this, it labels elements numerically - on the page you are inspecting. CSS can easily manipulate the order in which information is presented to the user (imagine a Flexbox child which uses order: 2) and this can have unintended consequences for assistive technologies.

How to use this feature

To use the Source Order Viewer, follow these steps:

  1. Inspect an element on a web page.
  2. Open the Accessibility Pane (in the Elements panel).
  3. Enable the Show source order option.

Once you have enabled the Source Order Viewer, the current inspected page presents a visualisation (within the inspected page) which indicates the document source order of page elements.

Availability

This feature is in Chrome Stable, just double check that it is enabled in the Experiments Panel. To enable:

  1. From DevTools, enter Cmd + Shift + P > Show Experiments.
  2. Type in source order in the Experiments Filter box.
  3. Enable the Source Order Viewer experiment.

Further Resources

DevTools has a bunch of handy accessibility related features:

«   Previous tip Next tip   »

Sign up to receive a developer tip, in the form of a gif, in your inbox each week