Group 1

Group 2 (change by script)

Group 3 (disabled checkboxes)

The state of disabled checkboxes are unaffected by the select-all checkbox. Their default states, whether checked or unchecked, remain - and they contribute to the status of the overall checkbox group. Note that the select-all checkbox is always indeterminate because there are disabled checked and unchecked checkboxes.