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
name: accessible name is image file name
description: |
This rule checks that the accessible name of an image is not its file name.
success_criterion:
1.1.1 # Non-text Content
test_aspects
DOM Tree
CSS Styling
authors:
Bryn Anderson
Applicability
The rule applies to any HTML img element that is exposed to assistive technologies, where the element has a non-empty alt attribute that is equal to the accessible name of the element, and where the alt attribute of the element references the file name and extension of the src attribute of the element.
Brynanders
changed the title
New Rule: Image accessible name is not image file name
New Rule: Valid use of image file name in accessible name
Aug 24, 2018
Wondering if this rule should be confined to accessible names for images that reference their own image files... or if it should look for any file reference like I have done so far?
Leading and trailing whitespace and difference in case sensitivity should be ignored.
Given that some file systems are case sensitive and that file system paths for sure are whitespace sensitive, it seems to be best to compare the src and alt attributes verbatim.
name: accessible name is image file name
description: |
This rule checks that the accessible name of an image is not its file name.
success_criterion:
test_aspects
authors:
Applicability
The rule applies to any HTML
img
element that is exposed to assistive technologies, where the element has a non-emptyalt
attribute that is equal to the accessible name of the element, and where thealt
attribute of the element references the file name and extension of thesrc
attribute of the element.Expectation
Each test target has an
alt
attribute that serves as an appropriate text alternative as described in F30: Failure of Success Criterion 1.1.1 and 1.2.1 due to using text alternatives that are not alternatives (e.g., filenames or placeholder text).Assumptions
There are currently no assumptions
Accessibility support
There are no major accessibility support issues known for this rule.
Background
Test Cases
Pass example 1
Image depicting a PDF file format, uses the .pdf extension in the accessible name.
Failure example 1
The accessible name is the image file name and does not serve as an appropriate text alternative.
Inapplicable example 1
No reference to a file extension or file path in the accessible name.
The text was updated successfully, but these errors were encountered: