From c607b2546f9e1973666addc59f543b5299084900 Mon Sep 17 00:00:00 2001
From: Rakina Zata Amni Let new focus target be the first focusable area in
+ scope. The following terms are defined in the CSS Scoping: 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.DOMMatrix2DInit
or DOMMatrixInit
+
+
+
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.
+ target and a string focus trigger.Let new focus target be the first focusable area in - scope.
+If focus trigger is "click", then let new focus target be the first + click focusable focusable area whose DOM anchor is + positioned after new focus target in the flat tree, in tree + order, or null if it does not exist.
+ +Otherwise, let new focus target be the first focusable area + whose DOM anchor is positioned after new focus target in the + flat tree, in tree order, or null if it does not exist.
Set new focus target to null.
+If no fallback target was specified, abort the focusing steps.
+ -Otherwise, let new focus target be the fallback target.
+If new focus target is null, then:
- +If no fallback target was specified, abort the focusing + steps.
Otherwise, let new focus target be the fallback + target.
If focus trigger is "click", then let new focus target be the first - click focusable focusable area whose DOM anchor is - positioned after new focus target in the flat tree, in tree - order, or null if it does not exist.
- -Otherwise, let new focus target be the first focusable area - whose DOM anchor is positioned after new focus target in the - flat tree, in tree order, or null if it does not exist.
+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 possible focus delegates be the list of all focusable areas whose DOM anchor is a descendant + of new focus target in the flat tree.
+ +Let new focus target be the first focusable area in tree + order of its DOM anchor in possible focus delegates, or + null if possible focus delegates is empty.
If the activation behavior of a click focusable focusable - area is triggered, the user agent must run the focusing steps on the - focusable area with focus trigger set to "click".
+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".
+ +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 and a string focus trigger.
+ 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 box 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 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.
+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 possible focus delegates be the list of all focusable areas whose DOM anchor is a descendant of new focus target in the flat tree.
-Let new focus target be the first focusable area in tree - order of its DOM anchor in possible focus delegates, or - null if possible focus delegates is empty.
+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.
If new focus target is null, then:
If no fallback target was specified, abort the focusing - steps.
If no fallback target was specified, then return.
Otherwise, let new focus target be the fallback - target.
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.
@@ -84804,7 +84810,7 @@ new PaymentRequest(…); // Allowed to use set to "nearest".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.
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 @@ -74053,7 +74046,7 @@ END:VCARD
Set new focus target to the element's first scrollable region, according to a - pre-order, depth-first traversal of the box tree.
+ pre-order, depth-first traversal of the flat tree.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.
The currently focused area of a top-level browsing context at any particular time is the focusable area returned by this algorithm:
@@ -73695,13 +73692,11 @@ END:VCARDWhen 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".
+ area with focus trigger set to "click
".
- click()
method on an element or dispatching a synthetic click
event on it won't cause the element to get focused.
- 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.
click
".
- Note that focusing is not an activation behavior, i.e. calling the click()
method on an element or dispatching a synthetic 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.