Summary: | AX: support alternative text for "content" property | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Haroen Viaene <hello> | ||||
Component: | Accessibility | Assignee: | Nobody <webkit-unassigned> | ||||
Status: | RESOLVED DUPLICATE | ||||||
Severity: | Normal | CC: | cfleizach, emilio, jcraig, jorge.f, sander, webkit-bug-importer | ||||
Priority: | P2 | Keywords: | InRadar | ||||
Version: | Safari Technology Preview | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
Attachments: |
|
Description
Haroen Viaene
2020-04-29 02:41:32 PDT
It looks like we support [aria-expanded="test6"]::before { content: "\25BC"; alt: "test"; } but probably not this style .new::before { content: url(./img/star.png) / "New!"; /* or a localized attribute from the DOM: attr("data-alt") */ } (In reply to chris fleizach from comment #2) > It looks like we support > > [aria-expanded="test6"]::before { > content: "\25BC"; > alt: "test"; > } > > but probably not this style > > .new::before { > content: url(./img/star.png) / "New!"; > /* or a localized attribute from the DOM: attr("data-alt") */ > } I tried > [aria-expanded="test6"]::before { > content: "\25BC"; > alt: "test"; > } and VO don't read the alt. This appears to work for me. see the screen shot <style> .new::before { content: "\25BC"; alt: "test"; } </style> <div class="new">hello</div> Created attachment 399136 [details]
Picture
dupe of bug 159022 that includes test case *** This bug has been marked as a duplicate of bug 159022 *** |