Skip to content

[css-highlight-api] How should highlight pseudos be exposed to assistive techonologies? #4601

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

Closed
sanketj opened this issue Dec 14, 2019 · 5 comments
Labels
a11y-tracker Group bringing to attention of a11y, or tracked by the a11y Group but not needing response. Closed as Duplicate css-highlight-api-1 i18n-tracker Group bringing to attention of Internationalization, or tracked by i18n but not needing response.

Comments

@sanketj
Copy link
Member

sanketj commented Dec 14, 2019

Moving this issue over from: MicrosoftEdge/MSEdgeExplainers#73.

Post from @Reinmar:
I wonder if and how the semantics of created highlights should be exposed to assistive technologies.

For instance – when highlights would be used to render spellchecking squiggles we should also have a way to tell the that this piece of text is misspelled. I don't know how the selection itself is rendered in the Accessibility Object Model, but I think that highlights should be able to use the same mechanism.

I'd imagine that the easiest solution may be to allow defining a highlight's title. For a misspelled fragment of text it could be set to "misspelled" (that's at least what VoiceOver reads).

Post from @Comandeer
In the simplest case something like HighlightRange#label should be enough. However, if you already referenced AOM, there is proposal for virtual accessibility nodes, that are dedicated just for this case: exposing non-element nodes in accessibility tree. In such case HighlightRange interface should be updated in following manner:

partial interface HighlightRange {
	AccessibleNode attachAccessibleRoot();
}

The only part that it's worrying me a little is the fact that VANs are behaving a little like pseudoelements (they could have dimensions and position).

@sanketj
Copy link
Member Author

sanketj commented Dec 14, 2019

@frivoal, I don't have permission to add labels (any way for me to get that?). Could you add the highlight API label please? Thanks!

@frivoal frivoal added the a11y label Dec 16, 2019
@plehegar plehegar added the a11y-tracker Group bringing to attention of a11y, or tracked by the a11y Group but not needing response. label Feb 15, 2020
@fantasai fantasai removed the a11y label Oct 29, 2020
@frivoal frivoal added the i18n-tracker Group bringing to attention of Internationalization, or tracked by i18n but not needing response. label Mar 25, 2021
@frivoal
Copy link
Collaborator

frivoal commented Mar 25, 2021

Adding the i18n tracker tag here, since we're talking about making it possible to describe the highlights, likely through some piece of text that would be presented to the user. The mechanism we end up choosing needs to be able to account for internationalized text.

@dandclark
Copy link
Contributor

I guess this is a dupe of #6498. @sanketj, I know this one came first, but the more recent discussion has happened over at #6498 so is it OK with you if we close this one in favor of that one?

@sanketj
Copy link
Member Author

sanketj commented Sep 8, 2021

@frivoal Do you want to keep this issue open for i18n tracking or should we just move over to #6498?

@frivoal
Copy link
Collaborator

frivoal commented Sep 15, 2021

Sorry for creating the dup. Yes, given the state of discussions, I think we should close this one and continue over there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a11y-tracker Group bringing to attention of a11y, or tracked by the a11y Group but not needing response. Closed as Duplicate css-highlight-api-1 i18n-tracker Group bringing to attention of Internationalization, or tracked by i18n but not needing response.
Projects
None yet
Development

No branches or pull requests

6 participants