diff --git a/spec/shadow/index.html b/spec/shadow/index.html index 9b1d5f7a..54f078e3 100644 --- a/spec/shadow/index.html +++ b/spec/shadow/index.html @@ -1116,6 +1116,20 @@

Ranges and Selections

The getSelection() method of the shadow root object returns the current selection in this shadow tree.

+
+

Focus

+

A shadow host can delegate focus to its shadow root by assigning a boolean delegatesFocus flag to be true in ShadowRootInit dictionary. If omitted, a shadow host does not delegate focus to its shadow root, and the shadow host itself can be focusable.

+

When a shadow host HOST delegates focus, user agent must behave as follows. +

    +
  1. In sequential focus navigation, HOST itself will be skipped. See the next secition for the formal definition.
  2. +
  3. When HOST is focused by focus() method or autofocus attribute: The first focusable area in the tree order in HOST's shadow tree gets focus.
  4. +
  5. 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 the tree order in HOST's shadow tree gets focus.
  6. +
  7. When any element in HOST's shadow tree has focus, :focus pseudo-class applies to HOST in addition to the focused element itself.
  8. +
  9. 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.
  10. +
+

+
+

Sequential Focus Navigation

@@ -1567,6 +1581,8 @@

ShadowRootInit dictionary

required ShadowRootMode mode
Specifies the associated mode of ShadowRoot
+
boolean delegatesFocus = false
+
Specifies whether shadow host delegates focus to its ShadowRoot. If omitted, the default value is false.