Skip to content
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

rôle présentation pour image décorative #51

Open
innoticFR opened this issue May 24, 2018 · 1 comment
Open

rôle présentation pour image décorative #51

innoticFR opened this issue May 24, 2018 · 1 comment

Comments

@innoticFR
Copy link

innoticFR commented May 24, 2018

Les notes techniques indiquent que:

Un attribut WAI-ARIA role="presentation" ne peut pas être utilisé pour déclarer une image de décoration conformément aux indications données par la spécification sur les restrictions de l'utilisation des rôles WAI-ARIA.

Or la documentation ARIA indique à l'élément img with alt="" que les 2 seuls rôles autorisés sont les rôles presentation et none

L'ajout du rôle presentation est aujourd'hui un des rares moyens d'indiquer que l'alternative d'une image a volontairement été laissée vide, et est utile dans les procédures de tests

@innoticFR
Copy link
Author

F38: Failure of Success Criterion 1.1.1 due to not marking up decorative images in HTML in a way that allows assistive technology to ignore them

If an image has the attribute role="presentation", it will be ignored by AT. However, if it does not have role="presentation", and if there is no alt attribute at all assistive technologies are not able to ignore the image. For decorative images which need to be ignored by AT, either role="presentation" must be used or the alt attribute must be provided and have a null value (i.e., alt="") to avoid a failure of this Success Criterion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant