-
Notifications
You must be signed in to change notification settings - Fork 272
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
Failure F2 Example 3 should be removed #3514
Comments
Just because some screen readers don't output things correctly doesn't mean that the failure F2 Example 3 needs to be removed, because
There is a semantic difference between strong and CSS bold. |
The fact that some SRs (as a form of error-correction/last ditch effort to help to their users) can be made to announce purely stylistic changes doesn't absolve authors from not relying purely on visual style changes to convey meaning. (the same way that the last ditch behaviour of some SRs to announce text before/after a form input without an accessible name - from memory, JAWS used to do that - as a potential label for a field doesn't absolve authors from 4.1.2 requirements) It may however be an idea to add a note to https://www.w3.org/WAI/WCAG22/Techniques/html/H49 to clarify that current SRs don't necessarily announce text-level semantics |
The problem I've got with this particular example is that it's a line of dialogue, so modifying the speech output can make it less meaningful, rather than more more meaningful:
Speech output for this is currently "I said, no, not before dinner!" in a screen reader. Let's change this to use the
Depending on how AT maps
There's also the matter of degree: if everything is important, nothing is important. So this makes sense:
but lots of strong/em voice switches would be really annoying. For example, in formatted code examples like this:
|
while interesting, this seems to be orthogonal to the problem. the issue the example tries to show is: authors should not rely purely on CSS/visual changes to convey something. the argument over whether or not it's then annoying or not is, as with anything, subjective. |
Discussed on backlog call 10/27/2023, @scottaohara shared how might be addressed in ARIA call. |
I think this has been resolved by PR #4128 |
Example 3 fails on visual emphasis using
font-weight: bold
specified via CSS rather than using a semantic elementhttps://www.w3.org/WAI/WCAG22/Techniques/failures/F2#example-3-using-css-to-visually-emphasize-a-phrase-or-word-without-conveying-that-emphasis-semantically
H49 suggests using the
strong
element for this:https://www.w3.org/WAI/WCAG22/Techniques/html/H49
@stevefaulkner did some testing on this in January 2023 https://www.tpgi.com/screen-readers-support-for-text-level-html-semantics/
tl;dr
strong
orem
differently to other textTo quote Steve's post:
On that basis Example 3 shouldn't be a failure.
The text was updated successfully, but these errors were encountered: