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

Focusable image with empty alt #2277

Open
giacomo-petri opened this issue Feb 6, 2025 · 1 comment
Open

Focusable image with empty alt #2277

giacomo-petri opened this issue Feb 6, 2025 · 1 comment
Labels
accessibility support Accessibility support testing and tracking

Comments

@giacomo-petri
Copy link
Collaborator

Accessibility support

Images can have their role set to presentation through an empty alt attribute. Presentational Roles Conflict Resolution does not specify what to do if such an image is focusable (it only specifies what to do in case of explicit role="none" or role="presentation"). Some browsers expose these images and some don’t. Thus, this rule may fail for technologies that expose these without creating an accessibility issue for users of other technologies.

ACT Rules

Test cases

Test case 1

Image element with empty acc name and non-negative tabindex attribute value

<img src="some_src" alt="" tabindex="0">

Test cases

Test instructions

  • Just run the test and check the element role

External links

@giacomo-petri giacomo-petri added the accessibility support Accessibility support testing and tracking label Feb 6, 2025
@giacomo-petri
Copy link
Collaborator Author

Test results

Test case 1

I've run them locally and all browsers are exposing the element as a role image

## Test case 1

- Date: 29 Jan 2025
- Operating system: not relevant
- Browser: Safari, Chrome, Firefox
- Assistive technology: not relevant
- Test result: Passed

@daniel-montalvo daniel-montalvo changed the title [Accessibility Support] Focusable image with empty alt Focusable image with empty alt Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility support Accessibility support testing and tracking
Projects
None yet
Development

No branches or pull requests

1 participant