From 97a14d95410603835891336d159e67666508d6a3 Mon Sep 17 00:00:00 2001 From: Di Zhang Date: Tue, 3 Dec 2024 17:18:04 -0500 Subject: [PATCH] Review changes: refactor example --- source | 199 ++++++++++++++++++++++++++++++++++++++++++++------------- 1 file changed, 153 insertions(+), 46 deletions(-) diff --git a/source b/source index fa863c03e6e..93e045fd4fc 100644 --- a/source +++ b/source @@ -79848,10 +79848,10 @@ dictionary ToggleEventInit : EventInit { is a negative integer.

-

By default, the order within a tabindex-ordered focus navigation scope is - determined by each of its element's tabindex value. This ordering criteria is - sometimes overridden, as is the case with reading-flow-ordered focus navigation scopes.

+

By default, the order within a tabindex-ordered focus navigation scope is determined + by each element's tabindex value. This ordering criteria is sometimes overridden, as is + the case with reading-flow-ordered focus + navigation scopes.

A reading-flow-ordered focus navigation scope is a tabindex-ordered focus navigation scope whose focus navigation scope owner is a @@ -80097,7 +80097,7 @@ dictionary ToggleEventInit : EventInit {

A reading-flow-ordered scope owner is either: CSSDISPLAY

+ -
  • Let container be wrapper.

  • +
  • +

    Per step 6, we loop through the children of wrapper in tree order:

    -
  • The rendering-defined sibling reading flow is sorted by the CSS order attribute. The - items list is [A, F, C, H].

  • + + + -

    Combining everything together, the flattened tabindex-ordered focus navigation scope is: - [Wrapper, A, B, DC, F, C, E, D, H, PA, G].

    +

    Notice that DC is the focus navigation scope owner of a + reading-flow-ordered focus navigation scope, but its reading flow + container is still wrapper. Its reading flow order is + computed as follows:

    - + +

    A, C, F, PA and H are reading flow + items. Each is the focus navigation scope owner of a tabindex-ordered + focus navigation scope that does not follow the reading flow order. For example, + the focus navigation scope of C will be « E, D » because E has a higher positive tabindex + value than D.

    + +

    Combining everything together, the flattened tabindex-ordered focus navigation scope + for wrapper is « wrapper, A, + B, DC, F, C, E, D, H, + PA, G ».