w3c / svg-aam

SVG Accessibility API Mappings
20 stars 14 forks source link

expectations for image tag with aria-label #25

Open pkra opened 1 year ago

pkra commented 1 year ago

[I'm filing this here but I realize there might be better places to move this to.]

I had recently stumbled upon a validation error https://github.com/dequelabs/axe-core/issues/3969.

While I made the point that aria-label on an image tag is valid, the axe developers pointed out that AT support seemed questionable.

As I commented there, I feel this is perhaps a problem about expectations. I'm hoping the WG(s) could shed some light on this.

jnurthen commented 1 year ago

IMO we need tests for each of those inclusion statements (if they don't already exist). I think the new wpt tests using computedRole and computedLabel would probably be a great fit for this.

pkra commented 1 year ago

IMO we need tests for each of those inclusion statements (if they don't already exist). I think the new wpt tests using computedRole and computedLabel would probably be a great fit for this.

No disagreement but it's not what I was after here. As I noted on the axe tracker, in my tests all current engines exposed image tags with aria-label as img/image, matching svg-aam.