You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unfocusing steps should account for delegatesFocus somehow #7070
Calling blur() on a shadow host with delegatesFocus = true should blur content inside the shadow tree. This matches sanity (blur() should undo what focus() does) and both WebKit and Blink.
Makes sense. Are you able to figure out a rough spec patch that would fix this? Either as a PR, or just writing it up informally here and I can translate it, would be great.
@domenic I think around step 2 we should say something like "if old focus target is a shadow host, and its shadow root delegates focus, and the currently focused area of a top-level browsing context is a shadow-including descendant of the shadow root, then let old focus target be the currently focused area of a top-level browsing context."
Sounds good. My tentative guess it it should be the very first step, right? Since we probably want to do inert checking/area stuff on the "computed" old focus target, not the original.
Activity
domenic commentedon Sep 14, 2021
Makes sense. Are you able to figure out a rough spec patch that would fix this? Either as a PR, or just writing it up informally here and I can translate it, would be great.
Bug 1730566 - Make blur() works on shadow host with delegatesFocus r=…
emilio commentedon Sep 15, 2021
@domenic I think around step 2 we should say something like "if old focus target is a shadow host, and its shadow root delegates focus, and the currently focused area of a top-level browsing context is a shadow-including descendant of the shadow root, then let old focus target be the currently focused area of a top-level browsing context."
Or something like that.
domenic commentedon Sep 16, 2021
Sounds good. My tentative guess it it should be the very first step, right? Since we probably want to do inert checking/area stuff on the "computed" old focus target, not the original.
I'll send a PR shortly.
Make unfocusing steps work well with delegatesFocus
Bug 1730566 - Make blur() works on shadow host with delegatesFocus r=…
Make blur() works on shadow host with delegatesFocus
Make blur() works on shadow host with delegatesFocus
Fixes to delegatesFocus
Fixes to delegatesFocus
Make blur() works on shadow host with delegatesFocus
Fixes to delegatesFocus
Fixes to delegatesFocus
Bug 1730566 - Make blur() works on shadow host with delegatesFocus r=…