You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[23a2a8] Image has non-empty accessible name - Removes Inapplicable Example 1 and adds accessibility support note to cover SVG role exposed differently by browsers (#2290)
* Add accessibility support note to cover SVG elements role inconsistently exposed
* Update _rules/image-non-empty-accessible-name-23a2a8.md
Co-authored-by: Kevin White <[email protected]>
* added SvgRoot term
* Apply suggestions from code review
* Update _rules/image-non-empty-accessible-name-23a2a8.md
---------
Co-authored-by: Kevin White <[email protected]>
Copy file name to clipboardexpand all lines: _rules/image-non-empty-accessible-name-23a2a8.md
+4-13
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,7 @@ There are no assumptions.
58
58
- There are several popular browsers that do not treat images with an empty `alt` attribute (`alt=""`) as having a role of `presentation` but instead add the `img` element to the accessibility tree with a [semantic role][] of either `img` or `graphic`.
59
59
- Implementation of [Presentational Roles Conflict Resolution][] varies from one browser or assistive technology to another. Depending on this, some [semantic][semantic role]`img` elements can fail this rule with some technology but users of other technologies would not experience any accessibility issue.
60
60
- Images can have their role set to `presentation` through an empty `alt` attribute. [Presentational Roles Conflict Resolution][] does not specify what to do if such an image is [focusable][] (it only specifies what to do in case of explicit `role="none"` or `role="presentation"`). Some browsers expose these images and some don't. Thus, this rule may fail for technologies that expose these without creating an accessibility issue for users of other technologies.
61
+
-`svg` elements have an [implicit role][] of `graphics-document` in [svg-aam](https://www.w3.org/TR/svg-aam-1.0/#details-id-66). There are popular browsers that do not follow [svg-aam](https://www.w3.org/TR/svg-aam-1.0/#details-id-66) and instead expose SVG elements with a different [semantic role][], such as `image`, `generic` or `SvgRoot`.
61
62
62
63
### Bibliography
63
64
@@ -196,16 +197,6 @@ This `img` element has an [explicit role][] of `none`. However, it is [focusable
196
197
197
198
#### Inapplicable Example 1
198
199
199
-
This `svg` element has an [implicit role][] of `graphics-document`.
0 commit comments