Test case: <rect>
+ img
role
According to the SVG Accessibility API Mappings (AAM) , the <rect>
element and other basic shape elements should implicitly map to the ARIA img role . This test case explicitly applies role="img"
to the <rect>
element.
Test examples
rect element
Rectangle
A violet coloured rectangle
circle element
Circle
A violet coloured circle
ellipse element
Ellipse
A violet coloured oval
line element
Line
A violet coloured line
polyline element
Polyline
A violet coloured triangle
polygon element
Polygon
A violet coloured triangle
Test criteria
The browser should map the <rect>
element to the img
role through the available platform accessibility APIs. Note: depending on the API the browser may expose the shape as either "image" or "graphic".
The screen reader should indicate that the shape is either a "graphic" or "image".
Test results
Browser test results
Chrome 46 (IA2 )
Edge Win10.1024 (UIA )
Firefox 42 (IA2 )
IE 11 (MSAA )
Safari 9 (NSAP )
***Element/attribute***
?
?
?
?
?
Screen reader test results
Chrome 46
Edge Win10.1024
Firefox 42
IE 11
Safari 9
Jaws 17
?
?
?
?
N/A
Narrator Win10.1024
N/A
?
N/A
?
N/A
NVDA 2015.4
?
?
?
?
N/A
Orca ?
N/A
N/A
?
N/A
N/A
VoiceOver OSX10.11
?
N/A
?
N/A
?