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
Copy file name to clipboardExpand all lines: _rules/image-not-in-acc-tree-is-decorative-e88epe.md
+7-5Lines changed: 7 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -62,7 +62,9 @@ Each test target is [purely decorative][].
62
62
63
63
### Accessibility Support
64
64
65
-
There are no accessibility support issues known.
65
+
According to the [WAI-ARIA Graphics Module](https://www.w3.org/TR/graphics-aria-1.0/) specification, the `role="graphics-document"` requires an accessible name. Additionally, the [SVG Accessibility API Mappings](https://www.w3.org/TR/svg-aam-1.0/) set the default ARIA role for SVG elements to `graphics-document`, and [ARIA in HTML](https://www.w3.org/TR/html-aria/) maps the `<svg>` element to the same role.
66
+
67
+
However, browser implementations vary. Some browsers expose `<svg>` elements without accessible names as images without alternative text. To address this, in the passed and inapplicable examples where the `<svg>` element is intended to be purely decorative, the `role="none"` attribute has been added.
66
68
67
69
### Bibliography
68
70
@@ -102,11 +104,11 @@ This `img` element that is ignored by assistive technologies because it has an [
102
104
103
105
#### Passed Example 4
104
106
105
-
This `svg` element that is ignored by assistive technologies because it has no attribute that would give it an [accessible name][] is [purely decorative][].
107
+
This `svg` element that is ignored by assistive technologies because it has no attribute that would give it an [accessible name][] is [purely decorative][]. Because some browsers expose the `svg` element with the `image` role, the `role="none"` attribute has been added to guarantee its presentational role.
@@ -224,11 +226,11 @@ This `img` element is not [visible][] because it is positioned off screen.
224
226
225
227
#### Inapplicable Example 4
226
228
227
-
This `svg` element is ignored because it is a child of a link that provides its [accessible name][].
229
+
This `svg` element is ignored because it is a child of a link that provides its [accessible name][]. Because some browsers expose the `svg` element with the `image` role, the `role="none"` attribute has been added to guarantee its presentational role.
0 commit comments