diff --git a/source b/source index 7190aebdceb..dc59a218484 100644 --- a/source +++ b/source @@ -4173,6 +4173,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
scrollend eventThe following features and terms are defined in CSS Syntax: @@ -66543,9 +66544,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()
@@ -67083,64 +67081,58 @@ interface HTMLDialogElement : HTMLElement {
is in addition to how such dialogs respond to close requests.
To light dismiss open dialogs, given a PointerEvent event:
To light dismiss open dialogs, given a Node
+ pointerDownTarget, a number pointerDownX, a number pointerDownY,
+ a Node pointerUpTarget, a number pointerUpX, and a number
+ pointerUpY:
Assert: event's isTrusted attribute is true.
Let document be event's target's node document.
Let document be pointerDownTarget's node + document.
If document's open dialogs list is empty, then return.
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":
Let sameTarget be true if ancestor is document's - dialog pointerdown target.
Let pointerDownDialog be the result of running nearest clicked + dialog given pointerDownTarget, pointerDownX, and + pointerDownY.
Set document's dialog pointerdown target to null.
Let pointerUpDialog be the result of running nearest clicked + dialog given pointerUpTarget, pointerUpX, and + pointerUpY.
If sameTarget is false, then return.
If pointerDownDialog is not pointerUpDialog, 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 pointerDownDialog 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:
To run light dismiss activities, given a Node
+ pointerDownTarget, a number pointerDownX, a number pointerDownY,
+ a Node pointerUpTarget, a number pointerUpX, and a number
+ pointerUpY:
Run light dismiss open popovers with event.
Run light dismiss open popovers given pointerDownTarget and + pointerUpTarget.
Run light dismiss open dialogs with event.
Run light dismiss open dialogs given pointerDownTarget, + pointerDownX, pointerDownY, pointerUpTarget, + pointerUpX, and pointerUpY.
To find the nearest clicked dialog, given a PointerEvent
- event:
To find the nearest clicked dialog, given a Node target, a
+ number clientX, and a number clientY:
Let target be event's target.
If target is a dialog element, target has an open attribute, target's is modal is
- true, and event's clientX and
- clientY are outside the bounds of target,
- then return null.
+
If target is a dialog element, target has an open attribute, target's is modal is
+ true, and clientX and clientY are outside of target's bounding box, then return null.
The check for clientX and clientY is because a pointer event that hits the ::backdrop pseudo element of a dialog will result in event having a
- target of the dialog element itself.
The check for clientX and clientY is because a pointer event that hits the ::backdrop pseudo element of a dialog will result in event having a
+ target of the dialog element itself. This could be improved if the pointer events spec passed the
+ ::backdrop pseudo-element directly instead of the dialog
+ element.
Let currentNode be target.
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.
@@ -93081,64 +93070,42 @@ dictionary DragEventInit : MouseEventInit { data-x="close request">close requests.To light dismiss open popovers, given a PointerEvent
- event:
To light dismiss open popovers, given a Node
+ pointerDownTarget and a Node pointerUpTarget:
Assert: event's isTrusted attribute is true.
Let target be event's target.
Let document be target's node document.
If the result of running topmost auto or hint popover given - document is null, then return.
If event's type is "pointerdown": set document's popover
- pointerdown target to the result of running topmost clicked popover given
- target.
If event's type is "pointerup":
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 document be pointerDownTarget's node + document.
Set document's popover pointerdown target to null.
Let pointerDownPopover be the result of running topmost clicked + popover given pointerDownTarget.
If sameTarget is false, then return.
Let pointerUpPopover be the result of running topmost clicked + popover given pointerUpTarget.
Let endpointIsHint be true if document's showing hint - popover list contains ancestor; otherwise - false.
If pointerDownPopover is not pointerUpPopover, then return.
Run hide popover stack until given document, - ancestor, Hint, false, and - true.
Let endpointIsHint be true if document's showing hint + popover list contains pointerDownPopover; + otherwise false.
Let autoEndpoint be ancestor.
Run hide popover stack until given document, + pointerDownPopover, Hint, false, and + true.
If endpointIsHint is true, then set autoEndpoint to - document's hint stack parent.
+Let autoEndpoint be pointerDownPopover.
This means, if a hint popover is clicked, auto popovers are closed, except - those that are parent to the clicked hint popover.
-If endpointIsHint is true, then set autoEndpoint to + document's hint stack parent.
-Run hide popover stack until given document, - autoEndpoint, Auto, false, and - true.
This means, if a hint popover is clicked, auto popovers are closed, except + those that are parent to the clicked hint popover.
+ +Run hide popover stack until given document, + autoEndpoint, Auto, false, and + true.