act-rules.github.io icon indicating copy to clipboard operation
act-rules.github.io copied to clipboard

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

Open dd8 opened this issue 6 months ago • 3 comments

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'

dd8 avatar Jun 16 '25 07:06 dd8