{"id":386654,"date":"2025-05-27T07:02:32","date_gmt":"2025-05-27T13:02:32","guid":{"rendered":"https:\/\/css-tricks.com\/?p=386654"},"modified":"2025-05-27T07:02:34","modified_gmt":"2025-05-27T13:02:34","slug":"what-we-know-so-far-about-css-reading-order","status":"publish","type":"post","link":"https:\/\/css-tricks.com\/what-we-know-so-far-about-css-reading-order\/","title":{"rendered":"What We Know (So Far) About CSS Reading Order"},"content":{"rendered":"\n
The To get a better idea, let\u2019s just dive in!<\/p>\n\n\n\n\n\n\n\n (Oh, and make sure that you\u2019re using Chrome 137 or higher.)<\/p>\n\n\n The default value is Let\u2019s start with the reading-flow<\/code> and reading-order<\/code> proposed CSS properties are designed to specify the source order of HTML elements in the DOM tree, or in simpler terms, how accessibility tools deduce the order of elements. You\u2019d use them to make the focus order of focusable elements match the visual order, as outlined in the Web Content Accessibility Guidelines<\/a> (WCAG 2.2).<\/p>\n\n\n\nreading-flow<\/code><\/h3>\n\n\nreading-flow<\/code> determines the source order of HTML elements in a flex, grid, or block layout. Again, this is basically to help accessibility tools provide the correct focus order to users.<\/p>\n\n\n\nnormal<\/code> (so, reading-flow: normal<\/code>). Other valid values include:<\/p>\n\n\n\n\n
flex-visual<\/code><\/li>\n\n\n\nflex-flow<\/code><\/li>\n\n\n\ngrid-rows<\/code><\/li>\n\n\n\ngrid-columns<\/code><\/li>\n\n\n\ngrid-order<\/code><\/li>\n\n\n\nsource-order<\/code><\/li>\n<\/ul>\n\n\n\nflex-visual<\/code> value. Imagine a flex row with five links. Assuming that the reading direction is left-to-right (by the way, you can<\/em> change the reading direction with the direction<\/a><\/code> CSS property), that\u2019d look something like this:<\/p>\n\n\n\n