Web design and digital-business ideas grounded in real tasks.

CSS reading-flow can change navigation order as well as visual order

A web designer comparing a laptop and keyboard with a small grid of cards on screen
AI-generated photographic illustration; not documentary photography.

A card grid looks logical from left to right, but pressing Tab jumps across it in an unexpected sequence. The visual arrangement and the document’s underlying order may have diverged. CSS reading-flow is designed to address aspects of that relationship in supported layouts.

MDN’s reading-flow reference describes values for block, flex and grid containers. The property can affect the sequence exposed for speech and sequential navigation. It is a feature whose browser support needs checking, not a universal repair for poorly structured HTML.

Begin with an order that already makes sense

The MDN reading-order glossary emphasises a sensible source order. If CSS fails to load or a browser does not support the property, the page should still tell a coherent story.

For an original example, imagine three linked cards: introduction, requirements and application. Their source order should support that sequence. Moving the application card visually above the introduction at one breakpoint creates a design question before it creates a CSS question.

On a supported grid, reading-flow: grid-rows asks for a row-by-row visual reading flow. Other values have different meanings; flex-visual and flex-flow are not interchangeable names for the same behaviour.

Test the sequence, not just the screenshot

  1. Inspect the DOM order with the styling removed or simplified.
  2. Tab through the page at each meaningful layout breakpoint.
  3. Test the supported browser and assistive-technology combinations your audience uses.
  4. Check the fallback when the property is unsupported.

Include nested interactive content in the test. A card may contain a heading link and a separate button, and the user needs an understandable route through both. Do not add positive tabindex values as a quick way to force a pleasing demonstration; that can create a separate ordering problem elsewhere.

Record the expected sequence in plain language alongside the layout decision. If the team cannot agree how a keyboard user should encounter the content, the implementation is not yet ready.

Reading-flow is useful when it expresses a deliberate reading relationship. It works best with sound document structure and real navigation testing rather than a screenshot-only review.