[Webkit-unassigned] [Bug 284774] New: AX: aria-labelledby uses referenced checkbox value instead of name

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Dec 16 13:35:56 PST 2024


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

            Bug ID: 284774
           Summary: AX: aria-labelledby uses referenced checkbox value
                    instead of name
           Product: WebKit
           Version: Safari 18
          Hardware: All
                OS: macOS 14
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Accessibility
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: webkit.org at m.cognize.org
                CC: andresg_22 at apple.com,
                    webkit-bug-importer at group.apple.com

Created attachment 473578

  --> https://bugs.webkit.org/attachment.cgi?id=473578&action=review

reduced case example of the problem, with variants that do not have the problem

Using VoiceOver on macOS Sonoma 14.7 with Safari 18.2, when `aria-labelledby` on a `<button>` references the id of a `checkbox`, it reads the checkbox's `value` as the button's name instead of the checkbox's name in the accessibility tree when the name comes from an explicitly associated `<label>` element. In the web rotor, the button's name is displayed as the checkbox's name bracketed between its value (e.g. "1 Filter One 1").

This problem does not occur when the referenced input is a 'radio' instead of a 'checkbox'. It does not occur when the 'checkbox' is named using `aria-label` or `aria-labelledby`.

I can reproduce the problem in Safari Technology Preview Release 209. I can't reproduce the problem on iOS 18.2.

In Safari 17.4.1 on macOS Sonoma 14.4.1, the web rotor name matches the announced name, the value of the checkbox (e.g. "1").

Reduced case attached and at this URL: https://codepen.io/ccwilcox/pen/QwLdgjO/9ec89d6a8fc4c25b86a907b90bb4f8f0

-- 
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/20241216/081ccc9b/attachment.htm>


More information about the webkit-unassigned mailing list