Re: [whatwg/dom] Add delegatesFocus init to attachShadow and flag to ShadowRoot (#768)

Oops, I missed this thread. Thanks @domenic!

> These seem to be largely user-agent defined, according to the CSSWG. https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo. Any changes would probably be done there, but I'm unsure what changes we would make, given how much leeway that document gives user agents. Perhaps we could add another bullet point to the non-normative suggestions?

The default focus ring is drawn for all the `activeElement` in every shadow tree/document. If a shadow host that delegates focus has a focused element within its shadow tree, the focus ring is drawn for both the focused element in the shadow tree and the host.

I'm not really sure I understand `:focus-visible`, but I think in Blink it's like the above with the added requirement of being focused sequentially or through `focus()` (in other words, not through click), or if it's editable/can have user keyboard input/etc.

> Looks like this got stalled a bit, I'll poke it.

I'll change shadow-utils a bit directly on Blink and update the tests once we figure out what's the desired behavior for focus delegation is.


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/pull/768#issuecomment-526046973

Received on Thursday, 29 August 2019 06:39:50 UTC