fizzstudio / svg-aria-test

Testing and reaching parity between HTML and SVG handling of ARIA
MIT License
0 stars 3 forks source link

SVG primitives and role=region, role=group, role=img #25

Open frankelavsky opened 2 years ago

frankelavsky commented 2 years ago

I want to be able to use role=region in an SVG structure as well as role=group and role=img. I have suspicions that there will be issues using this structure, since many charting libraries use figure (element or role) or multiple levels of role=region. There may be difficulties using group properly, however region should only be reserved for cases when the region can remain unique and overall there are not too many regions in a page.

It is not entirely known why major charting libraries avoid a region->group->img structure.

We will need to develop scaffolding for this and also test these semantics across screen readers and browsers.

We would expect:

shelbyelavsky commented 2 years ago

Could you update the issue description expectations to match the expectations in the file? A couple expectations we discussed also need to be added for focus indicators and screen adjustments with indicators.

For example:

frankelavsky commented 2 years ago

Done! The expectations in this issue match the file and I've added focus indicator notes.

shelbyelavsky commented 2 years ago

Also noting here that the SVG and html elements "rect" number values do not match. So technically they cannot perform the same.😉

shelbyelavsky commented 2 years ago

I'm adding the recorded test videos for each browser/screen reader combinations here for easy access.

NVDA and Chrome

https://user-images.githubusercontent.com/98043076/156834406-db1ad118-e79e-4787-8b8d-75d606171158.mp4

NVDA and Firefox

https://user-images.githubusercontent.com/98043076/156834533-1100c367-6ec0-4c0c-bbf8-484b169c4f88.mp4

VoiceOver and Safari

https://user-images.githubusercontent.com/98043076/156834002-d2bcf076-aa01-4413-9a1c-d7e6c0c5928c.mp4

JAWS and Chrome

https://user-images.githubusercontent.com/98043076/156834709-4c3c979c-fe95-4cd1-b8d6-1ab583639ee1.mp4