--- url: "https://webaim.org/blog/screen-readers-and-css/" titulek: "WebAIM: Screen Readers and CSS: Are We Going Out of Style (and into Content)?" h1: "Screen Readers and CSS: Are We Going Out of Style (and into Content)?" popis: "" jazyk: "en" kanonicka: "" drobecky: ["You are here:", "Home", "Blog"] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-15 03:51:43" znaku: 4367 slov: 684 kodovani: "utf-8" sha256: "321d6d027f2ed94f47ec90d781312cc0c176b1a82403af364918573c82a999c0" --- # Screen Readers and CSS: Are We Going Out of Style (and into Content)? You are here: [Home](/) > [Blog](/blog/) > Screen Readers and CSS: Are We Going Out of Style (and into Content)? Developers often ask how various CSS declarations translate to the screen reader experience. Properties that are strictly visual – such as color, border, font, margin, padding – are transparent, but what about those that inject content, like `::before` and `::after`? What about properties that communicate meaning, like `list-style` and `line-through`? And then there are those that visually position or crop content, like `clip`, `position`, `display`, `overflow`, `height`, `width`, `visibility`… the list goes on. We all know that [using CSS to generate content is bad](http://www.karlgroves.com/2013/08/26/css-generated-content-is-not-content/), just as we all know that we should never ever exceed the speed limit. It happens. Earlier this year, three colleagues and I tested and documented the behavior of some widely-used CSS declarations in screen readers, leaving the screen reader user settings at their defaults. We reported our findings at [AccessU 2017](http://www.knowbility.org/education/accessu/) and will present again, with some new material added, at [Accessing Higher Ground](http://accessinghigherground.org/). In addition to myself, our team included CB Averitt and Steve Sawczyn of Deque, and Birkir Gunnarsson. We tested the following screen reader-browser pairings: - JAWS/IE 11 - JAWS/Chrome - JAWS/Firefox - NVDA/Firefox - NVDA/Chrome - VoiceOver/Safari - VoiceOver/Mobile Safari - Talkback/Mobile Chrome ## Key Takeaways ### Different screen reader/browser pairings behave differently. It’s tempting to assert that if you do *x*, “the screen reader” will announce *y*. Sometimes it really is just that simple, but in a surprising number of situations, it just isn’t that absolute. For example: - Across the pairings we tested, `counter` was announced three different ways. (CSS counters are “variables” maintained by CSS whose values can be incremented by CSS rules, to track how many times they are used.) - Using `vertical-align:super` to communicate cents within a dollar amount worked in half of our pairings. In the other half, $12 99 was announced as $1,299. - Applying a transition to `opacity:0; visibility:hidden` on a paragraph, we logged five slightly different behaviors across the eight pairings. ### DOM order is everything. One of the consistencies we found is that, regardless of CSS position, content is read in the order that it appears in the DOM. For example, appending a `