This is a hack to be able to embed design within a tool that was never meant for graphic design. If github readmes where meant to be both accessible and designable they would not be just markdown/rst.
Your suggestion means a11y software having a hack that goes against the spec to enable a hack that was used to circumvent a platform that knowingly crippled it's document representation because they thought it would be used for mostly unstyled info.
It's almost 2021. Accessibility software can use ML and OCR to provide a semblance of navigable semantics for visual-first media like images. See Project Naptha [1] for one such example of adding OCR-powered text detection to images encountered in your browser.
In the specific case of SVG, the text can already be fully semantically extracted with very little work.
Hey, if we really work at it, I'm sure we can make it impossible for anyone to use the Web without sending all of their information to an untrusted third party who has every incentive to violate your privacy, but won't, because they say they won't.
> It's almost 2021.
Indeed. We should have gone a lot further down this slippery slope by now.
(Offline) OCR models should really be everywhere now, just like offline speech-to-text models are. It's kind of surprising that it's not just "a thing" built into every OS.
1) New technology exists
2) Accessibility nerds tell everyone not to use it, because it's not supported by screen readers
3) Everyone uses it anyways
4) Screen readers support it
5) GOTO 1
It seems very similar to people who think they can fix climate change by yelling at enough people not to buy certain things.
Edit: To clarify, I'd love to see SVGs become more accessible, but I would hope the lack of support today isn't a problem as far as README shields.
I think we need to embed accessibility and accessibility audits as a basic and essential aspect of all tooling and standards. It shouldn't be up to diligent people like yourself to notice these issues as a matter of expertise or personal interest, but something we notice by default because it hasn't complied with standards.
SVGs are a minefield for accessibility and tend to be either wrapped in a container with accessibility info or have nothing at all added. It's a mess.
I believe the sandbox attribute would also block javascript / scripts, although not sure what cross browser support on that looks like.
Maybe for special cases, where the content is from the same domain or is actively messaging the size outwards so you can code some interplay between the outer page and the iframe. But neither side can do it alone.
1. Use of AIRA tags on the <img> like `aria-label`
2. `aria-labelled-by` pointing to a <desc> within the SVG?
3. Using the <title> element within the SVG
4. Adding role="group" to make the SVG traversable
5. role attributes on each <g>roup.
JAWS and NVDA will announce this.