From 4c6d388481c441087cd0ca7b70e1f32f8bb1227e Mon Sep 17 00:00:00 2001
From: Mirko Brodesser Assert: element's popover invoker is null. Set element's popover invoker to invoker. Assert: element is not in document's top
layer.
Let ancestor be the result of running the topmost popover - ancestor algorithm given element.
If ancestor is null, then set ancestor to document.
Set element's popover visibility state to showing.
Set element's popover invoker to invoker.
Run the popover focusing steps given element.
If shouldRestoreFocus is true and element's DragEventInit : MouseEventInit {
false, and false.
To find the topmost popover ancestor, given a Node
- newPopover, perform the following steps. They return an HTML element
+ invoker or null, perform the following steps. They return an HTML element or null.
Run checkAncestor given newPopover's parent node within the flat tree.
Run checkAncestor given newPopover's popover - invoker.
Run checkAncestor given invoker.
return topmostPopoverAncestor.
To find the topmost popover ancestor, given a Node
- newPopover, and HTML element
- invoker or null, perform the following steps. They return an HTML element or null
+ invoker, perform the following steps. They return an HTML element or null.