Re: [w3c/webcomponents] :focus behavior of delegatesFocus:true will be confusing for users (#554)

Ah right, thanks for clarifying @TakayoshiKochi! I agree, `<gh-navbar>` shouldn't need `delegatesFocus = true` since it should never itself be focusable.

So I guess I don't completely understand what should happen if a *non-focusable* element (like in @ebidel's example) has a shadow root attached with `delegatesFocus = true`.

It seems like, as specced, `delegatesFocus = true` implicitly makes the host *quasi-focusable* - i.e., matches `:focus`, has special focusing behaviour when one of its descendants is clicked. I think this is the piece that I hadn't completely understood - my expectation was that `delegatesFocus` would have no effect unless the host element was **explicitly** focusable.

I think with the understanding that `delegatesFocus = true` has this special "quasi-focusable" implication, the current behaviour does make sense. However, if this is surprising to others, might we want to revisit that implication?

-- 
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/554#issuecomment-243211172

Received on Monday, 29 August 2016 18:29:17 UTC