w3c / css-a11y

Main repository for the CSS Accessibility Task Force

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Text Alt Comp section on CSS generated content does not allow for proper CSS content fallback

jnurthen opened this issue · comments

Moving old tracker issues.

https://www.w3.org/WAI/ARIA/track/issues/542

http://www.w3.org/WAI/PF/aria/complete#tac_gencss

This section does not account for proper CSS generated content fallbacks.

<div style="content: url(icon.png), attr(data-fallback);" data-fallback="Bar">Foo</div>

According to the TAC, the accessible name should be "Foo" as an image replaced the text visually, but the modality-specific text replacement should be "Bar"… We should adjust the name computation to account for this, despite the fact that the modality-specific fallback does not yet work in any known UA.

2021.01.06 - APA touched on this again and will branch out the conversation again to other groups to see there this needs to be discussed/revisited.