diff --git a/spec/shadow/index.html b/spec/shadow/index.html index 2fbfa07e..04a1ad73 100644 --- a/spec/shadow/index.html +++ b/spec/shadow/index.html @@ -1153,7 +1153,7 @@

Focus

  • When HOST is focused by focus() method or autofocus attribute: The first focusable area in focus navigation order of HOST's shadow root's focus navigation scope gets focus. See the next section for the formal definition of the ordering.
  • When mouse is clicked on a node in HOST's shadow tree and the node is not a focusable area: The first focusable area in focus navigation order of HOST's shadow root's focus navigation scope gets focus. See the next section for the formal definition of the ordering.
  • When any element in HOST's shadow tree has focus, :focus pseudo-class applies to HOST in addition to the focused element itself.
  • -
  • If :focus pseudo-class applies to HOST, and HOST is in a shadow root of another shadow host HOST2 which also delegates focus, :focus pseudo-class applies to HOST2 as well.
  • +
  • If :focus pseudo-class applies to HOST, and HOST is in a shadow root of another shadow host HOST2 which also delegates focus, :focus pseudo-class applies to HOST2 as well.
  • @@ -1260,9 +1260,15 @@

    Sequential Focus Navigation

  • Let NAVIGATION-ORDER be an empty list.
  • For each element ELEMENT in a focus navigation scope SCOPE,
      -
    1. if ELEMENT is focusable, a shadow host, or a slot element, append ELEMENT to NAVIGATION-ORDER.
    2. +
    3. If ELEMENT is a shadow host: +
        +
      1. If its tabindex value is not negative and its shadow root's delegatesFocus flag is set, append ELEMENT to NAVIGATION-ORDER.
      2. +
      3. Otherwise, append ELEMENT to NAVIGATION-ORDER.
      4. +
      +
    4. +
    5. Otherwise if ELEMENT is focusable, or a slot element, and its tabindex value is not negative, append ELEMENT to NAVIGATION-ORDER.
    -
  • Reorder NAVIGATION-ORDER according to the tabindex value attached to each node. In this step, an element whose tabindex value is negative must not be appended to NAVIGATION-ORDER.
  • +
  • Reorder NAVIGATION-ORDER according to the tabindex value attached to each node. In this step, a shadow host with negative tabindex value must be treated as if its tabindex value were 0.
  • @@ -1284,7 +1290,7 @@

    Sequential Focus Navigation

    1. If ELEMENT is a shadow host:
        -
      1. Unless its shadow root’s delegatesFocus flag is set, append ELEMENT to MERGED-NAVIGATION-ORDER.
      2. +
      3. If it is focusable, its tabindex value is not negative, and its shadow root’s delegatesFocus flag is not set, append ELEMENT to MERGED-NAVIGATION-ORDER.
      4. Apply the focus navigation order merging algorithm with the focus navigation order owned by its shadow root as input, then append the result to MERGED-NAVIGATION-ORDER.