[WICG/webcomponents] Add delegatesLabel and a content attribute to specify the label element within a shadow tree (#916)

During AOM F2F today, a common use case of wanting to label a custom element but want that label to activate a specific element within its shadow root when the label is to be activated, and the assistive technologies to label that specific element in the shadow tree instead of the entire shadow host or its shadow tree in its entirety.

We came up with the idea of `delegatesLabel` which like `delegatesFocus` will delegate the label specified on a shadow host to a specific element within the shadow root. In order to define which element will get labeled on behalf of the shadow host, a content attribute (e.g. `autofocus` or `labelfor`) should also be added.


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/WICG/webcomponents/issues/916

Received on Wednesday, 31 March 2021 00:10:04 UTC