Bug 222547

Summary: iOS indeterminate checkbox displays as checked when checked attribute is true
Product: WebKit Reporter: bordebugz
Component: FormsAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: akeerthi, bordebugz, cdumez, smoley, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: Safari 14   
Hardware: iPhone / iPad   
OS: iOS 14   

bordebugz
Reported 2021-03-01 05:34:29 PST
The HTML specification states that the indeterminate IDL attribute should override the checked attribute: "If the element’s indeterminate IDL attribute is set to true, then the control’s selection should be obscured as if the control was in a third, indeterminate, state." (https://www.w3.org/TR/html52/sec-forms.html#checkbox-state-typecheckbox). Unfortunately, this does not appear to be fully the case on iOS (although it seems to be fine on Mac). Bug report 160484 (https://bugs.webkit.org/show_bug.cgi?id=160484) appears to have attempted to address this issue, but the fix seems to have covered only the case where the checkbox is not checked. If the checkbox is checked and indeterminate, it still shows a checked appearance on iOS. (On Mac, the checked and indeterminate combination result in an indeterminate appearance, as expected per the spec.)
Attachments
Radar WebKit Bug Importer
Comment 1 2021-03-04 15:35:53 PST
Note You need to log in before you can comment on or make changes to this bug.