Would role=label provide an accessible name if in encapsulates a interactive widget

For the following example of an element with role=”label” encapsulating a checkbox widget.
Would a proposed label role assign the accessible name “foo” to the checkbox in this case?

<div role=”label”>
<div role=”checkbox” aria-checked=”false”></div>
                foo
</div>

If so, we would need to updated the accessible name calculation to include the effects of the label role.

Jon

Received on Sunday, 13 January 2019 22:41:13 UTC