Speaker: CB Averitt
Email: cb.averitt@deque.com
Personal URL: https://dive4cb.github.io/index.html
Note: During this notes AT refers to: Assistive Technology
CSS was meant for visual presentation, however it could have some impact on the audio presentation too. The experience for AT users could be affected by using different CSS properties.
Following is a list of examples and description on each of them.
Code Examples and results can be found at https://dive4cb.github.io/index.html
Let’s see how the following rules are interpreted in CSS with a Screen Reader
https://dive4cb.github.io/accessible-css-display.html
display:none
hides the contentvisibility:hidden
hides the content too, but keeps the space in the browser.https://dive4cb.github.io/accessible-css-absolute.html
Just because you placed an element there visually, it means that the AT user will get the same experience.
https://dive4cb.github.io/accessible-css-before-after.html
<p>
<a href="https://www.google.com" class="gold">Select</a>
</p>
<p>
<a href="https://www.google.com" class="diamond">Select</a>
</p>
Both ::before
and ::after
content are read by every browser, however IE11 + JAWS won’t be able to interpret this information. If you care about these users (as you should), an alternate solution must be found.
No mention of text strikethrough.
Think about an eCommerce website, where the sale prices is striked through (via CSS) both prices are goint to be read without differentiation.
A better solution would be:
- Add a hidden text, to be interpreted by the AT (use ARIA)
- Change the labels to "Was 20$, ... Now: 10$"
- Add a label with the discounted price Save $10
https://dive4cb.github.io/accessible-css-font-weight.html
Screen readers will read all text is read, but it will not mention any of the styles. Think about the importance of the bolded text, users of AT are not experiencing the same.
direction: rtl;
Even though the text is right to left on the screen, the AT will read them Left to right.
https://dive4cb.github.io/accessible-css-font-size.html
If you ever use font-size: 0
it will be read in every browser + AT Combo, however Safari + Voice Over will not read this text.