diff --git a/source b/source index a205205ec16..ddf60bcd008 100644 --- a/source +++ b/source @@ -62731,9 +62731,6 @@ interface HTMLDialogElement : HTMLElement {
Each Document
has a dialog pointerdown target, which is an HTML dialog element or null, initially null.
Each HTML element has a previously focused
element which is null or an element, and it is initially null. When showModal()
and show()
@@ -63196,12 +63193,16 @@ interface HTMLDialogElement : HTMLElement {
data-x="attr-dialog-closedby-any-state">Any state will close the dialog
element. This
is in addition to how such dialog
s respond to close requests.
To light dismiss open dialogs, given a PointerEvent
event:
To light dismiss open dialogs, given a PointerEvent
event
+ event:
Assert: event's isTrusted
attribute is true.
Assert: event's type
is
+ "click
".
Let document be event's target's node document.
Let ancestor be the result of running nearest clicked dialog given event.
If event's type
is
- "pointerdown
", then set document's
- dialog pointerdown target to ancestor.
If event's type
is
- "pointerup
", then:
Let sameTarget be true if ancestor is document's - dialog pointerdown target.
Set document's dialog pointerdown target to null.
If sameTarget is false, then return.
Let topmostDialog be the last element of document's open - dialogs list.
Let topmostDialog be the last element of document's open + dialogs list.
If ancestor is topmostDialog, then return.
If ancestor is topmostDialog, then return.
If topmostDialog's computed closed-by state is not Any, then return.
If topmostDialog's computed closed-by state is not Any, then return.
Assert: topmostDialog's close watcher is not null.
Assert: topmostDialog's close watcher is not null.
Request to close - topmostDialog's close watcher with - false.
Request to close + topmostDialog's close watcher with + false.
To run light dismiss activities, given a PointerEvent
event:
Assert: event's isTrusted
attribute is true.
Assert: event's type
is
+ "click
".
Run light dismiss open popovers with event.
Run light dismiss open dialogs with event.
To find the nearest clicked dialog, given a PointerEvent
- event:
To find the nearest clicked dialog, given a click
+ event event:
Let target be event's DragEventInit : MouseEventInit { data-x="popover-showing-state">showing
Every Document
has a popover pointerdown target, which is an HTML element or null, initially null.
Every HTML element has a popover trigger, which is an HTML element or null, initially set to null.
@@ -88236,6 +88222,9 @@ dictionary DragEventInit : MouseEventInit {Assert: event's isTrusted
attribute is true.
Assert: event's type
is
+ "click
".
Let target be event's target.
If topmostPopover is null, then return.
If event's type
is "pointerdown
", then: set document's popover
- pointerdown target to the result of running topmost clicked popover given
- target.
If event's type
is "pointerup
", then:
Let ancestor be the result of running topmost clicked popover - given target.
Let sameTarget be true if ancestor is document's - popover pointerdown target.
Let ancestor be the result of running topmost clicked popover + given target.
Set document's popover pointerdown target to null.
If ancestor is null, then set ancestor to - document.
If ancestor is null, then set ancestor to + document.
If sameTarget is true, then run hide - all popovers until given ancestor, false, and true.
Run hide all popovers until given + ancestor, false, and true.
To find the topmost clicked popover, given a Node
node: