From a33616866508ec0377ab4e036748e89bb5b46773 Mon Sep 17 00:00:00 2001 From: Giacomo Petri Date: Mon, 14 Apr 2025 12:05:41 +0200 Subject: [PATCH 1/3] Update image-not-in-acc-tree-is-decorative-e88epe.md --- _rules/image-not-in-acc-tree-is-decorative-e88epe.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/_rules/image-not-in-acc-tree-is-decorative-e88epe.md b/_rules/image-not-in-acc-tree-is-decorative-e88epe.md index 330674f8c70..41e4d57a543 100755 --- a/_rules/image-not-in-acc-tree-is-decorative-e88epe.md +++ b/_rules/image-not-in-acc-tree-is-decorative-e88epe.md @@ -62,7 +62,9 @@ Each test target is [purely decorative][]. ### Accessibility Support -There are no accessibility support issues known. +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 `` element to the same role. + +However, browser implementations vary. Some browsers expose `` elements without accessible names as images without alternative text. To address this, in the passed and inapplicable examples where the `` element is intended to be purely decorative, the role="none" attribute has been added. ### Bibliography @@ -102,11 +104,11 @@ This `img` element that is ignored by assistive technologies because it has an [ #### Passed Example 4 -This `svg` element that is ignored by assistive technologies because it has no attribute that would give it an [accessible name][] is [purely decorative][]. +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 gurantee its presentational role. ```html

Happy new year!

- + ``` @@ -224,11 +226,11 @@ This `img` element is not [visible][] because it is positioned off screen. #### Inapplicable Example 4 -This `svg` element is ignored because it is a child of a link that provides its [accessible name][]. +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 gurantee its presentational role. ```html - + From 787b316355700cdd41fb9605e4867d0012652f90 Mon Sep 17 00:00:00 2001 From: Giacomo Petri Date: Mon, 14 Apr 2025 12:14:38 +0200 Subject: [PATCH 2/3] Update image-not-in-acc-tree-is-decorative-e88epe.md --- _rules/image-not-in-acc-tree-is-decorative-e88epe.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_rules/image-not-in-acc-tree-is-decorative-e88epe.md b/_rules/image-not-in-acc-tree-is-decorative-e88epe.md index 41e4d57a543..ff43d934c8a 100755 --- a/_rules/image-not-in-acc-tree-is-decorative-e88epe.md +++ b/_rules/image-not-in-acc-tree-is-decorative-e88epe.md @@ -64,7 +64,7 @@ Each test target is [purely decorative][]. 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 `` element to the same role. -However, browser implementations vary. Some browsers expose `` elements without accessible names as images without alternative text. To address this, in the passed and inapplicable examples where the `` element is intended to be purely decorative, the role="none" attribute has been added. +However, browser implementations vary. Some browsers expose `` elements without accessible names as images without alternative text. To address this, in the passed and inapplicable examples where the `` element is intended to be purely decorative, the `role="none"` attribute has been added. ### Bibliography From 6912755a4114742f4d0c372a996d81e0d02248e3 Mon Sep 17 00:00:00 2001 From: Giacomo Petri Date: Mon, 14 Apr 2025 12:16:18 +0200 Subject: [PATCH 3/3] Update image-not-in-acc-tree-is-decorative-e88epe.md --- _rules/image-not-in-acc-tree-is-decorative-e88epe.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_rules/image-not-in-acc-tree-is-decorative-e88epe.md b/_rules/image-not-in-acc-tree-is-decorative-e88epe.md index ff43d934c8a..22d1c052b43 100755 --- a/_rules/image-not-in-acc-tree-is-decorative-e88epe.md +++ b/_rules/image-not-in-acc-tree-is-decorative-e88epe.md @@ -104,7 +104,7 @@ This `img` element that is ignored by assistive technologies because it has an [ #### Passed Example 4 -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 gurantee its presentational role. +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. ```html

Happy new year!

@@ -226,7 +226,7 @@ This `img` element is not [visible][] because it is positioned off screen. #### Inapplicable Example 4 -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 gurantee its presentational role. +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. ```html