diff --git a/source b/source
index 5699ab6fbee..1316abbbad4 100644
--- a/source
+++ b/source
@@ -3921,6 +3921,12 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
algorithms for DOMMatrix2DInit
or DOMMatrixInit
+
The following terms are defined in the CSS Scoping:
+ +One focusable area in each Document
is designated the focused
area of the document. Which control is so designated changes over time, based on algorithms
in this specification.
Focusable areas in a Document
- are ordered relative to the tree order of their DOM
- anchors. Focusable areas with the same DOM
- anchor in a Document
are ordered relative to their CSS
- boxes' relative positions in a pre-order, depth-first traversal of the box tree.
The currently focused area of a top-level browsing context at any particular time is the focusable area returned by this algorithm:
@@ -73694,9 +73690,13 @@ END:VCARD focusable via user interaction, only via programmatic APIs. -If the activation behavior of a click focusable focusable - area is triggered, the user agent must run the focusing steps on the - focusable area's DOM anchor.
+When a user activates a click focusable focusable
+ area, the user agent must run the focusing steps on the focusable
+ area with focus trigger set to "click
".
Note that focusing is not an activation behavior, i.e. calling the
+ click()
method on an element or dispatching a synthetic click
event on it won't cause the element to get focused.
The focusing steps for an object new focus target that is either a focusable area, or an element that is not a focusable area, or - a browsing context, are as follows. They can optionally be run with a fallback - target.
+ a browsing context, are as follows. They can optionally be run with a fallback + target and a string focus trigger.Let new focus target be the shape corresponding to the first
- img
element in tree order that uses the image map to which the area
+
Set new focus target to the shape corresponding to the first img
+ element in tree order that uses the image map to which the area
element belongs.
Let new focus target be the element's first scrollable region, - according to a pre-order, depth-first traversal of the box tree.
+Set new focus target to the element's first scrollable region, according to a + pre-order, depth-first traversal of the flat tree.
Let new focus target be the browsing context's +
Set new focus target to the browsing context's active document.
Let new focus target be the browsing context container's nested browsing context's - active document.
+Set new focus target to the browsing context container's + nested browsing context's active document.
If no fallback target was specified, abort the focusing steps.
+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 new focus
+ target in the flat tree.
Otherwise, let new focus target be the fallback target.
+Otherwise, let possible focus delegates be the list of all focusable areas whose DOM anchor is a descendant + of new focus target in the flat tree.
+ +Set new focus target to the first focusable area in tree + order of their DOM anchors in possible focus + delegates, or null if possible focus delegates is empty.
+ +For sequential focusability, the + handling of shadow hosts and delegates focus is + done when constructing the sequential focus navigation order. That is, the + focusing steps will never be called on such shadow + hosts as part of sequential focus navigation.
Set new focus target to null.
+If new focus target is null, then:
+ +If no fallback target was specified, then return.
Otherwise, set new focus target to the fallback + target.
If new focus target is a browsing context container with - non-null nested browsing context, then let new focus target be the + non-null nested browsing context, then set new focus target to the nested browsing context's active document, and redo this step.
Run the focusing steps for target, with the
- Document
's viewport as the fallback target.
Document
's viewport as the fallback target.
Move the sequential focus navigation starting point to target.