What does WCAG require of SVGs to pass SC 1.1.1 #4045
Replies: 5 comments
-
Hi @mraccess77
Decoration seems to be covered by a must to implement it in a way it can be ignored:
If not decoration it is non-text content and needs a text alternative that serves the equivalent purpose. Role "img" is not demanded by the SC. roles presentation and none, aria-hidden etc. are not mentioned by the SC but option to get to the result. Up to the content author to make right decisions.
You probably already know but lots of different options available and not all well supported for SVG, see the blog from Scott, but there are more: https://www.scottohara.me/blog/2019/05/22/contextual-images-svgs-and-a11y.html But specific techniques are not required for the SC. If we add SVG (like ASCII Art) to the NOTE of the definition of "non-text content" will that make it clear? any content that is not a sequence of characters that can be programmatically determined or where the sequence is not expressing something in human language
https://www.w3.org/TR/UNDERSTANDING-WCAG20/text-equiv-all.html#non-text-contentdef |
Beta Was this translation helpful? Give feedback.
-
Regarding decorative SVGs -- the AAM spec seems to say that certain SVG content is automatically not placed in the accessibility tree if it doesn't meet certain criteria -- therefore it would be already marked as decorative from a defacto standpoint by the browser because of it's absence in the tree. That's essentially what I'm asking -- is that defacto removal enough or do we need explicit marking. |
Beta Was this translation helpful? Give feedback.
-
passing WCAG SCs is results-driven ... so if the end result is that the SVG using content that's automatically NOT placed in the a11y tree is already "hidden" from AT, then that should be a pass, no? |
Beta Was this translation helpful? Give feedback.
-
Hi all, has there been any update on this? The default implied role is role_graphics_document. The SVG AAM indicates browser's don't have to include these in the accessibility tree - I find Chrome does and calls it an SVGroot. |
Beta Was this translation helpful? Give feedback.
-
ACT rule https://act-rules.github.io/rules/e88epe This svg element that is ignored by assistive technologies because it has no attribute that would give it an accessible name is purely decorative. |
Beta Was this translation helpful? Give feedback.
-
Might be worth discussing what is required to pass SC 1.1.1 with an SVG.
Of use : https://www.w3.org/TR/svg-aam-1.0/#include_elements
Beta Was this translation helpful? Give feedback.
All reactions