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 dialogs respond to close requests.

-

To light dismiss open dialogs, given a PointerEvent event:

+

To light dismiss open dialogs, given a PointerEvent event + event:

  1. Assert: event's isTrusted attribute is true.

  2. +
  3. Assert: event's type is + "click".

  4. +
  5. Let document be event's target's node document.

  6. @@ -63211,44 +63212,32 @@ interface HTMLDialogElement : HTMLElement {
  7. Let ancestor be the result of running nearest clicked dialog given event.

  8. -
  9. If event's type is - "pointerdown", then set document's - dialog pointerdown target to ancestor.

  10. - -
  11. -

    If event's type is - "pointerup", then:

    - -
      -
    1. Let sameTarget be true if ancestor is document's - dialog pointerdown target.

    2. - -
    3. Set document's dialog pointerdown target to null.

    4. - -
    5. If sameTarget is false, then return.

    6. - -
    7. Let topmostDialog be the last element of document's open - dialogs list.

    8. +
    9. Let topmostDialog be the last element of document's open + dialogs list.

    10. -
    11. If ancestor is topmostDialog, then return.

    12. +
    13. If ancestor is topmostDialog, then return.

    14. -
    15. If topmostDialog's computed closed-by state is not Any, then return.

    16. +
    17. If topmostDialog's computed closed-by state is not Any, then return.

    18. -
    19. Assert: topmostDialog's close watcher is not null.

    20. +
    21. Assert: topmostDialog's close watcher is not null.

    22. -
    23. Request to close - topmostDialog's close watcher with - false.

    24. -
    -
  12. +
  13. Request to close + topmostDialog's close watcher with + false.

To run light dismiss activities, given a PointerEvent event:

    +
  1. Assert: event's isTrusted attribute is true.

  2. + +
  3. Assert: event's type is + "click".

  4. +
  5. Run light dismiss open popovers with event.

  6. Run light dismiss open dialogs with event.

  7. @@ -63258,8 +63247,8 @@ interface HTMLDialogElement : HTMLElement { href="https://github.com/w3c/pointerevents/pull/460">Pointer Events spec when the user clicks or touches anywhere on the page.

    -

    To find the nearest clicked dialog, given a PointerEvent - event:

    +

    To find the nearest clicked dialog, given a click + event event:

    1. Let target be event's DragEventInit : MouseEventInit { data-x="popover-showing-state">showing

    2. -

      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 {
    3. Assert: event's isTrusted attribute is true.

    4. +
    5. Assert: event's type is + "click".

    6. +
    7. Let target be event's target.

    8. @@ -88246,31 +88235,14 @@ dictionary DragEventInit : MouseEventInit {
    9. If topmostPopover is null, then return.

    10. -
    11. If event's type is "pointerdown", then: set document's popover - pointerdown target to the result of running topmost clicked popover given - target.

    12. - -
    13. -

      If event's type is "pointerup", then:

      - -
        -
      1. Let ancestor be the result of running topmost clicked popover - given target.

      2. - -
      3. Let sameTarget be true if ancestor is document's - popover pointerdown target.

      4. +
      5. Let ancestor be the result of running topmost clicked popover + given target.

      6. -
      7. Set document's popover pointerdown target to null.

      8. - -
      9. If ancestor is null, then set ancestor to - document.

      10. +
      11. If ancestor is null, then set ancestor to + document.

      12. -
      13. If sameTarget is true, then run hide - all popovers until given ancestor, false, and true.

      14. -
      -
    14. +
    15. Run hide all popovers until given + ancestor, false, and true.

    To find the topmost clicked popover, given a Node node: