Skip to content

False positive in 'Image not in the accessibility tree is decorative' #2335

Open
@dd8

Description

@dd8

https://www.w3.org/WAI/standards-guidelines/act/rules/e88epe/

It looks like the current rule wording fails this example:

<span>Rating:</span>
<img src='star.png' alt='5 Stars'>
<img src='star.png' alt=''>
<img src='star.png' alt=''>
<img src='star.png' alt=''>
<img src='star.png' alt=''>

This is voiced as 'Rating, 5 Stars, graphic'

The version which passes the rule is harder to understand:

<span>Rating:</span>
<img src='star.png' alt='Star'>
<img src='star.png' alt='Star'>
<img src='star.png' alt='Star'>
<img src='star.png' alt='Star'>
<img src='star.png' alt='Star'>

This is voiced as 'Rating: Star graphic, Star graphic, Star graphic, Star graphic, Star graphic'

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions