From 58bd0b0632b384d4c4180d7a700e834c53ff8275 Mon Sep 17 00:00:00 2001
From: Di Zhang The following features are defined in CSS Flexible Box Layout:
@@ -79812,11 +79811,11 @@ dictionary ToggleEventInit : EventInit {
If element is in the popover showing
state and has a popover invoker set, then return element. If element is a reading-flow-ordered scope owner, then return
- element. If element's parent is a reading-flow-ordered scope owner, then
+ return element's parent. If element is a reading flow item, then return
- element. If element's parent is a reading flow item, then return
+ element's parent. Return element's parent's associated focus navigation owner. Let owner be the focus navigation scope owner of
scope. Assert: owner is a reading-flow-ordered scope
+ owner. Let container be the reading flow container associated with
owner. For each item of items: Assert: item is a reading flow item. While item is an element that is not the container: While item is not container: If item's focus navigation scope owner is owner: If item's associated focus navigation owner is owner: If output does not contain
@@ -80148,8 +80152,7 @@ dictionary ToggleEventInit : EventInit {
Different items can have the same inclusive
ancestor. Only add to output if it is not already in the reading
- flow order. This loop stops when the inclusive ancestor of
- item within the flat tree is in the scope.
+
Set item to the parent element of item within the flat @@ -80158,20 +80161,24 @@ dictionary ToggleEventInit : EventInit {
The rendering-defined sibling reading flow includes descendants of the reading flow container that are not in - the reading-flow-ordered focus navigation scope. This step traverses the inclusive ancestors of item within the flat - tree to find a potential element to include in the reading flow order.
+The rendering-defined sibling reading flow of container + includes descendants of this reading flow + container that might not be in scope. For example, if a direct child of + container has CSS 'display: contents' and its nested children are included in + items. Some elements in items will have the container while + others will have 'display: contents' child as its associated focus navigation + owner. This step traverses the inclusive + ancestors of item within the flat tree to make sure we only + include an element in the reading flow order if it is in scope.
For each child of owner element's children, in tree order:
If child's focus navigation scope owner is owner and - output does not contain child, append child to output.
If child's associated focus navigation owner is owner + and output does not contain child, + append child to output.