reading-order
Limited availability73% of usersExperimental
A companion to 'reading-flow'. It allows you to manually specify the order in which a screen reader or keyboard navigation should move through elements, regardless of their position in the HTML source.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyComingNot in Firefox or Safari yet, so not every major browser supports it.
The old way and the modern waySee the snippet: Match tab order to visual order without reordering the DOM →
Old way 6 lines
/* visual order via flex reverse, tab order fixed by reshuffling markup */
.nav {
display: flex;
gap: 1rem;
}
/* HTML rewritten per breakpoint, or tabindex="1/2/3" on each link */Modern 7 lines
.nav {
display: flex;
flex-direction: row-reverse;
reading-flow: flex-visual;
gap: 1rem;
}
/* tab order follows what you see, not DOM reverse */See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
0- Inherited
- No
- Applies to
- block, flex, and grid containers
- Animation type
- byComputedValueType
Quick example
.item-a { reading-order: 2; }
.item-b { reading-order: 1; }
/* Navigation will hit item-b first, then item-a */reading-order browser support
BaselineLimited availabilityThis feature is not Baseline because it does not work in some of the most widely-used browsers.Not ready for production without a fallback.
Usage73%of people can use this27% use a browser without it.
Browsers
137+
137+Mobile
137+Android