-
Notifications
You must be signed in to change notification settings - Fork 79
Closed
Labels
accessibility supportAccessibility support testing and trackingAccessibility support testing and tracking
Description
Accessibility support
There are several popular browsers that do not treat images with an empty alt attribute (alt="") as having a role of presentation but instead add the img element to the accessibility tree with a semantic role of either img or graphic.
ACT Rules
Test cases
Test case 1
An image with empty alt attribute value or no alt attribute value at all
<img src="some_src.png" alt="">
<img src="some_src.png" alt>External links
- WPT: https://wpt.fyi/results/html-aam/roles.html?label=experimental&label=master&aligned ['el-img-alt-no-value', 'el-img-empty-alt']
- ARIA in HTML: https://www.w3.org/TR/html-aria/#el-img-no-name
Test results
All browsers are ignoring/treating the image with empty alt as generic
Metadata
Metadata
Assignees
Labels
accessibility supportAccessibility support testing and trackingAccessibility support testing and tracking