-
Notifications
You must be signed in to change notification settings - Fork 14
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
TextPath and TSpan need platform-specific mappiings #2
Comments
Regarding the needs implementer input label: As an ATK implementor (I did the SVG AAM implementation in WebKit a couple of years ago) and as the maintainer of the GNU/Linux screen reader, I trust you don't need further input from me. If you need input for other platforms, perhaps pinging them to comment on this issue would be helpful? |
@joanmarie Yes, the input required is for the other platforms. But at the time I posted it, I was mostly focused on cleaning things up quickly for the republished WD. Maybe @melanierichards and @cookiecrook could take a look (or suggest someone else who could)? See the spec for more details. The question is basically: what's the appropriate platform API role for a formatted text span that needs to be exposed as an accessible object with name/description? |
@asurkov could you please provide input w.r.t. IA2? Thanks! |
Thanks for the ping @AmeliaBR and @joanmarie, |
@joanmarie, IA2_ROLE_TEXT_FRAME looks appropriate for tpath element. However, I'm not sure whether tspan element should have accessible object, because it looks quite close to HTML:span element, used for text styling, which should be expressed by text attributes. The latter is also valid for ATK case I would say. |
@asurkov The mapping tables describe what should happen if the object is included in the accessibility tree. So if the object is excluded from the tree, it wouldn't get mapped. When it should/shouldn't be included in the accessibility tree is (I believe) stated in the spec. If not, it should be. As with span, if it were used for styling and, say, made focusable, that span/tspan would need to be in the accessibility tree of course. And it would need a role which makes sense. :) |
oh, if there's no requirement to make it having an accessible object, then it's fine. So if it has to have an accessible object for some reason, for example, it is focusable, then IA2_ROLE_TEXT_FRAME should work. |
Thanks for the recommendations, all. To summarize the recommended roles:
As Joanie said, these roles are only used if the element has been given an explicit name or description, or is focusable. By default the elements are not exposed as separate accessible objects. One question, for @melanierichards: Why Group and not Text? Text is recommended in HTML-AAM for some formatted-span elements that are directly exposed in UIA, like |
Ping? The spec still has what I feel are incorrect mappings. Related aside: I'm working on the Chromium implementation at the moment. |
Right now, Chromium is exposing these (and also non-link Now that ARIA has the |
TextPath
andTSpan
should be mapped asATK_ROLE_STATIC
. The current mapping togroup
role means they will wind up exposed asATK_ROLE_PANEL
.This was originally filed against ARIA (i.e. before the Great Repo Split of 2017): w3c/aria#133
The text was updated successfully, but these errors were encountered: