-
Notifications
You must be signed in to change notification settings - Fork 26
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
Should figcaption participate in name/desc computation? #325
Comments
Can you link to a few of the occurrences you mentioned? If you can't link all of them, including code snippets of the markup (etc.) may help the editors ensure they account for all intended uses. |
@mbgower I think this discussion belongs in HTML-AAM which defines the accessible name computation for an personally (non chair hat) I don't think this is a good idea - the figcaption for a figure really acts more like a long description than a text alternative. |
If so, then shouldn't it be part of the accessible description calculation? |
@mbgower in simple cases maybe - and HTML-AAM may make that decision. |
@cookiecrook said
Here's an example of why I think it can get pretty redundant https://developer.mozilla.org/en-US/docs/Web/HTML/Element/figcaption As well, some of you looked at the original ticket, which has Laura's example: If there was no 'alt' specified in either of those situations, it seems hard to argue there is no information about the image. I'm seeing conversations like this happening.
I think that's a poor response (it's not mine!), as most screen readers currently don't get anything from figcaption, but that's the kind of conversation I'm seeing. My motivation for grappling with this is that a natural 'low fi' solution to this seems to be for devs to regurgitate the figcaption as the alt, which just adds verbosity. @mraccess77 made a somewhat related comment about verbosity in the WCAG thread. Thanks for giving this your consideration, and I've understood some of the points made. I'm not fixated on 'winning' figcaptions inclusion. I'm just looking for a decision and rationale that I can easily explain to dev teams so that they can understand and execute consistently with the best outcome. |
Hi, I recently had to identify an issue where a figure was included within a link and no accessible name was being produced for the link even though the figure was properly configured to provide one. It seems that logic similar to the way that SVG is treated is appropriate, which is documented within the AccName spec (in a basic way) may be needed at the very least to convey the association. I agree it is confusing, even within the ARIA and HTML spec seems to be somewhat contradictory about this. Figure: Figcaption: Suggestions about how to address this is welcome. |
i don't understand how you're interpreting ARIA in HTML to be contradictory here? It's saying nothing about how an accName is calculated, but rather providing scenarios (conditionals for `figure) on what roles could be used on these elements. on this particular topic, I'm currently thinking that @jnurthen comment that a I like the idea that that's how the relationship between these elements are specified, and that if authors want to provide a cc @cookiecrook @joanmarie @aleventhal – would appreciate your feedback on this idea. good, bad, meh? or is this potentially a "this ship has sailed" situation and the internet needs to be peppered with better author guidance on using |
Perhaps not contradictory, but unclear. The syntax of a figure element has a specific means for assigning textual content, and it is unclear to me, and likely to many others, that you should ignore this if you want the figure to actually have an accessible name in the accessibility tree. |
Captions and alternative text are two different things and serve different purposes. I think it would make sense for figcaption to either be fallback accessible name only when no other name for the image is available or otherwise figcaption could act as an accessible description. |
Personally I like the idea of this being a fallback for figure when needed. The case I am trying to cover is when someone puts a figure inside a link. |
@jnurthen let's use this as the issue to start the discussion on what to do with |
from the ARIA wg meeting today, remove i need to make this change then then file the necessary platform bugs |
resolves #325 This PR revises the mappings for `figure` and `figcaption` to remove the "labelled by" relations, changing them to "details for". The accessible name computation for `figure` removes `figcaption`, a note is added to further reference this change. TODO: - [ ] need to check on updates to UIA mapping, if any. - [ ] do we want `figcaption` to map to `caption`? - [ ] regardless of above, [`caption`](https://w3c.github.io/aria/#caption) will need to be updated in regards to its referencing `figure` and `figcaption` relationships - [ ] [`aria-details`](https://w3c.github.io/aria/#aria-details) definition should be updated to reference this change
I have seen a growing number of occurrences where people are properly using the figcaption as a child of figure, and have useful information in the caption, but are failing a checker because figcaption is not included in the computation for either name and description.
As per my issue opened with wcag w3c/wcag#852 I think a case can be made that figcaption could be used for either a name or description, depending on circumstances. Has consideration been given to including it?
If you proceed with its incorporation, it is my intention to create a complementary technique for WCAG that helps authors appropriately use it.
The text was updated successfully, but these errors were encountered: