-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update needed for "no corresponding role" description due to mappings of SVG #232
Comments
Ok that makes sense disallowing What about the implicit role for SVG elements? html-aam says no role (which matches Safari, but not Chrome/Firefox), svg-aam says role=graphics-document |
HTML AAM presently says it maps to ARIA in HTML says "no corresponding role", because " |
actually, strike my earlier statement here. I think this issue could be used as a reminder to revise the description of "no corresponding role" in ARA in HTML to more clearly indicate what was discussed here. |
May also be worth adding a note about using aria-hidden instead of role=presentation on inline SVG. There are several behaviour differences for SVG referenced by |
Hmm. maybe. though information like that might be a better fit for https://w3c.github.io/using-aria/ |
closing this as duplicate to 158 |
html-aria says
svg
has no corresponding role, and the only allowed roles are application, document or imgsvg-aam says
svg
has implicit role graphics-document and any role is allowedhttps://www.w3.org/TR/svg-aam-1.0/#roleMappingGeneralRules
Firefox exposes svg in html as role=graphic
Chrome exposes svg in html as role=SVGRoot
Safari doesn't expose svg in html (treats it role=presentation)
This means there's no way to use inline
<svg>
elements for decorative images because role=presentation isn't allowed. You can see this causing a problem in practice here on www.gov.uk:validator/validator#981
The text was updated successfully, but these errors were encountered: