w3c / html-aria

ARIA in HTML
https://w3c.github.io/html-aria/
Other
179 stars 48 forks source link

Allow aria-hidden=true on picture element #346

Closed scottaohara closed 2 years ago

scottaohara commented 2 years ago

presently the picture element allows for no roles or aria-* attributes, which generally makes sense because the picture element itself is not an accessible object. That said, there could be a situation where a picture that contains a decorative image needs to be hidden..... and for whatever reason the expected alt="" on the fallback image cannot be used, but aria-hidden=true on the picture element could. Upon testing this just now, seems like this would be a viable option as Chromium browsers, Firefox and Webkit all ignore the child <img> in this situation.

stevefaulkner commented 2 years ago

WFM