Open cookiecrook opened 1 year ago
The difference in select is indeed relevant, but in spinbutton (input type=number) I don't see the difference between Mac and Windows, m.E. in both the HTML element is implemented the same. That the ARIA role spinbutton allows additional variants is correct, but has nothing to do with the operating systems (see https://github.com/w3c/aria-practices/issues/1155)
Discussed in the ARIA working group today: https://www.w3.org/2023/04/20-aria-minutes#t05
Reminder to consider the points raised in this issue when working on this one: https://github.com/w3c/html-aam/issues/473
Another consideration that came up in the call -- certain attributes like aria-invalid
are valid on a <select>
, but not on a button
role.
Another consideration that came up in the call -- certain attributes like aria-invalid are valid on a select, but not on a button role.
Also true for
Furthermore, a select has a value and a label, a button has only a label, no value.
To schedule after TPAC
While working on HTML-AAM automated role tests, I noticed there were a few implicit role expectations that seemed to align with a Windows-style rendering, but did not align with the macOS renderings.
In particular, this test of a select list without a size attribute:
Yields:
assert_equals: expected "combobox" but got "button"
in WebKit on macOS.A true
combobox
is always (or almost always?) rendered as a text field with text-carat insertion and an associated menu. That's not the case for simple<select>
menus on Mac. They actually render a button that triggers a menu.Screen shots of simple select (not a "combobox"):
I think this represents a platform-level user interface different that should be conveyed to the user of assistive technology. A Mac VoiceOver user would expect they could literally type or select text in a combobox, and that's not a valid assumption here.
In a related but inverse scenario, macOS renders
<input type="number>
as a text field with enclosed steppers, as opposed to the Windows-style "spin button."Screen shot of simple number input (not a "button"):
Note: I'll try to add some screen shots of the equivalent Windows control to further the discussion.
In summary
progressbar -> progress
andspinbutton -> number
orspinbutton -> stepper
. (New ARIA issue?)