You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.
There is a specific scenario that I pasted in the issue #298
we should allow role='presentation' appears with non-empty alt text. Like
<img
aria-hidden={ true }
role='presentation'
src='...'
alt='<non-empty> alt text'
/>
In following situation:
<img alt='123'/>
<span>123</span>.
Sometimes the alt text equals to the nearest text. The alt text is no need to be discoverable by assistive technologies. But they should exist to show for sighted user once this img fails loading.
For screen reader users, they only be able to 'see' one text around (e.g. there is a img with alt='apple' and there is a span text near it apple, than screen reader users only see one of them)
For sighted users, they both see the img and the span, but in the situation that the img fails loading, sighted users should know which image failed loading by seeing the alt text at the position of that image.
This is for a better support for both screen reader users and sighted users.
So the following format should be acceptable:
- consumers can now specify this options to declare whether there project supports Non-empty alt text with role equals presentation.
- add one test case for the enabled option.
- closes#298
- consumers can now specify this options to declare whether there project supports Non-empty alt text with role equals presentation.
- add one test case for the enabled option.
- closes#298
There is a specific scenario that I pasted in the issue #298
we should allow role='presentation' appears with non-empty alt text. Like
In following situation:
Sometimes the alt text equals to the nearest text. The alt text is no need to be discoverable by assistive technologies. But they should exist to show for sighted user once this img fails loading.
For screen reader users, they only be able to 'see' one text around (e.g. there is a img with alt='apple' and there is a span text near it apple, than screen reader users only see one of them)
For sighted users, they both see the img and the span, but in the situation that the img fails loading, sighted users should know
which image failed loading
by seeing the alt text at the position of that image.This is for a better support for both screen reader users and sighted users.
So the following format should be acceptable:
The text was updated successfully, but these errors were encountered: