Bug 231760

Summary: AX: checkboxes don't respect `indeterminate` IDL attribute state
Product: WebKit Reporter: Scott <scottaohara>
Component: AccessibilityAssignee: Tyler Wilcock <tyler_w>
Status: RESOLVED FIXED    
Severity: Normal CC: aboxhall, akeerthi, andresg_22, apinheiro, aroselli, cdumez, cfleizach, changseok, dmazzoni, esprehn+autocc, ews-watchlist, gyuyoung.kim, jcraig, jdiggs, mifenton, samuel_white, tyler_w, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 15   
Hardware: All   
OS: All   
URL: https://scottaohara.github.io/tests/attr-indeterminate/
Attachments:
Description Flags
Patch none

Description Scott 2021-10-14 12:39:46 PDT
There appears to have been a regression in the support for a native HTML checkbox's indeterminate IDL attribute, as recent testing has shown that it is returning the unchecked value (0) rather than the mixed value (2) when specified.

Test case: https://scottaohara.github.io/tests/attr-indeterminate/

Reviewing with the accessibility checker, the native checkboxes are returning a value of 0 when given the indeterminate IDL attribute.  

I found these previous issues which reported on this bug, and were closed as fixed (hence assuming this is a regression). I am linking to them here in hopes that they might be somehow helpful in fixing this new instance of the mixed state not being properly exposed.

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

Thanks
Comment 1 Radar WebKit Bug Importer 2021-10-14 12:39:56 PDT
<rdar://problem/84269311>
Comment 2 Tyler Wilcock 2022-12-23 11:48:56 PST
Created attachment 464184 [details]
Patch
Comment 3 EWS 2022-12-23 16:56:08 PST
Committed 258314@main (4160624d7f96): <https://commits.webkit.org/258314@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 464184 [details].