From 8615199b5141ce19163d021cfc5cd05b7ef2bd5a Mon Sep 17 00:00:00 2001
From: Domenic Denicola If focus target is a shadow-including inclusive ancestor of the
- currently focused area of a top-level browsing context's DOM anchor,
- then return null. If focus target's shadow
+ root is a shadow-including inclusive ancestor of the currently
+ focused area of a top-level browsing context's DOM anchor, then return
+ null. Let autofocus delegate be the autofocus delegate for focus
target given focus trigger.
-
If focus trigger is "click
", then let possible
- focus delegates be the list of all click focusable focusable areas whose DOM anchor is a descendant
- of focus target in the flat tree.
Otherwise, let possible focus delegates be the list of all focusable areas whose DOM anchor is a descendant - of focus target in the flat tree.
Return the first focusable area in tree order of who their - DOM anchors are in possible focus delegates, or - null if possible focus delegates is empty.
Return the first focusable area in shadow-including tree + order of who their DOM anchors are in possible + focus delegates, or null if possible focus delegates is empty.
For sequential focusability, the @@ -75166,6 +75169,14 @@ END:VCARD +
If old focus target is a shadow host whose shadow root's delegates focus is true, + and old focus target's shadow root + is a shadow-including inclusive ancestor of the currently focused area of a + top-level browsing context's DOM anchor, then set old focus + target to that currently focused area of a top-level browsing + context.
If old focus target is inert, then return.