[Webkit-unassigned] [Bug 226551] New: AX: inconsistent announcement for SVGs used in <img> element (macOS/VO and iOS/VO)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jun 2 13:33:21 PDT 2021


https://bugs.webkit.org/show_bug.cgi?id=226551

            Bug ID: 226551
           Summary: AX: inconsistent announcement for SVGs used in <img>
                    element (macOS/VO and iOS/VO)
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Accessibility
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: redux at splintered.co.uk
                CC: webkit-bug-importer at group.apple.com

There are currently inconsistencies with how <img> elements with an SVG are announced by VoiceOver - depending on whether the SVG has a <title> or not, whether the <img> has an explicit additional role="img" or not, and whether or not alt="..." attribute is present. Further, there are inconsistencies between macOS/Safari/VoiceOver and iOS/Safari/VoiceOver.

See this small set of tests https://codepen.io/patrickhlauke/full/XbjYGZ/ (this includes current results of how these different scenarios are announced, but copying them here for clarity as well):

<img src="[svg without title]" alt="Box">
macOS/Safari/VoiceOver: Box, empty group / iOS/Safari/VoiceOver: Box, image

<img src="[svg without title]" alt="Box" role="img">
macOS/Safari/VoiceOver: Box, image / iOS/Safari/VoiceOver: Box, image

<img src="[svg with title]" alt="Box">
macOS/Safari/VoiceOver: Box, group > Test, empty group > end of, Box, group / iOS/Safari/VoiceOver: (completely skipped)

<img src="[svg with title]" alt="Box" role="img">
macOS/Safari/VoiceOver: Box, image / iOS/Safari/VoiceOver: Box, image

<img src="[svg with title]">
macOS/Safari/VoiceOver: Test, empty group / iOS/Safari/VoiceOver: (completely skipped)

<img src="[svg with title]" role="img">
macOS/Safari/VoiceOver: image / iOS/Safari/VoiceOver: image

There are further oddities depending on whether the SVG is an external URL, or a data URL, reported by Barry Pollard here https://www.tunetheweb.com/experiments/svg-images/ (see https://bugs.webkit.org/show_bug.cgi?id=145263#c13)

Successor to https://bugs.webkit.org/show_bug.cgi?id=145263

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210602/051bb637/attachment-0001.htm>


More information about the webkit-unassigned mailing list