Re: [w3c/webcomponents] Disabling tabindex across potentially many shadow roots (#520)

> a good way to disable all the focusable elements at once, hopefully. Is my understanding correct?

@TakayoshiKochi yes. I was not saying that focusable elements affect performance of animations. I was saying that the only ways I currently know of to disable focus on all elements are either:

1. Make the element visibility: hidden or display: none. This does not work in my case because I'm trying to animate a layer so it would negatively impact performance to remove that layer from the render tree.
2. Set tabindex=-1 on all children of the element. This should hopefully not cause repainting but is hard to do because (as I understood it) if any of those children contained shadow dom I would need to pierce their shadow boundaries and set all of their focusable children to tabindex=-1

If setting tabindex=-1 on a shadow host in shadow dom v1 will remove its children from the tab order then I think I'm happy :)

---
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/520#issuecomment-225098290

Received on Friday, 10 June 2016 05:42:55 UTC