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

@alice - thanks for the comment, I think we are now on the same page.

In my mental model, a shadow host with `delegatesFocus=true` is explicitly declared *focusable*, as a whole component. You can `focus()` on the element, you can click on any part of the element to focus the element, and once it gets focus it matches the `:focus` selector. The difference is that it *delegates* focus to shadow root.

As you pointed out, `delegatesFocus = true` makes the shadow host *focusable* but the behavior is somewhat different from regular *focusable* element. This is new, so it can be possible that developers don't expect the behavior.

Once you are educated, are you happy and can you live with the current `delegatesFocus=true` behavior?  If so, I think this is a problem of explaining the new behavior to more general public (than spec readers / browser implementers).

-- 
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-243327945

Received on Tuesday, 30 August 2016 04:11:23 UTC