Re: [w3c/webcomponents] In Shadow DOM v1, tabIndex=-1 makes all elements inside the shadow tree to be no tab-focusable (#774)

Setting `tabindex=-1` on a shadow host as the effect of disabling the focus of the component. We have builtin elements like input and video elements, and if `tabindex=-1` is set on either element, then its content including buttons and media controls aren't focusable. That is, the intention of setting `tabindex=-1` is to make that particular reusable element not focusable including its implementation details.

Using `tabindex=-1` instead of `delegatesFocus` for focus delegation is a wrong thing to do, and we should really [add `delegatesFocus` back to the HTML specification](https://github.com/whatwg/html/issues/2013)

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/774#issuecomment-505258573

Received on Tuesday, 25 June 2019 02:51:48 UTC