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:

+ + +
Intersection Observer
@@ -73564,16 +73570,6 @@ END:VCARD

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.


@@ -74008,8 +74008,8 @@ END:VCARD

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.

    @@ -74028,8 +74028,8 @@ END:VCARD
    -

    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.

    @@ -74040,8 +74040,8 @@ END:VCARD
    -

    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.

    @@ -74060,7 +74060,7 @@ END:VCARD
    -

    Let new focus target be the browsing context's +

    Set new focus target to the browsing context's active document.

    @@ -74071,31 +74071,66 @@ END:VCARD
    -

    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.

    - -
    Otherwise
    +
    If new focus target is a shadow host whose shadow root's delegates focus is + true
    -

    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.

    +
    Otherwise
    + +
    +

    Set new focus target to null.

    +
    + +
  1. + +

    If new focus target is null, then:

    + +
      +
    1. If no fallback target was specified, then return.

    2. + +
    3. Otherwise, set new focus target to the fallback + target.

    4. +
    + +
  2. +
  3. 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.

  4. @@ -84763,7 +84798,7 @@ new PaymentRequest(…); // Allowed to use set to "nearest".

  5. Run the focusing steps for target, with the - Document's viewport as the fallback target.

  6. + Document's viewport as the fallback target.

  7. Move the sequential focus navigation starting point to target.

  8. @@ -123681,6 +123716,9 @@ INSERT INTERFACES HERE
    [CSSRUBY]
    CSS3 Ruby Module, R. Ishida. W3C.
    +
    [CSSSCOPING]
    +
    CSS Scoping Module, T. Atkins. W3C.
    +
    [CSSSIZING]
    CSS Intrinsic & Extrinsic Sizing Module, T. Atkins, E. Etemad. W3C.