diff --git a/source b/source index 995a25a0a06..3c578ddc84b 100644 --- a/source +++ b/source @@ -84988,9 +84988,71 @@ dictionary DragEventInit : MouseEventInit { data-x="dom-invokeevent-invoker">invoker set to node, and its cancelable attribute initialized to true.

-
  • If notCancelled is true and invokee has an associated - invocation action algorithm then run the invokee's invocation - action algorithm given action. +

  • +

    If notCancelled is true:

    + +
      +
    1. Let shouldShowPopover be false. + +
    2. Let shouldHidePopover be false. + +
    3. If action is an ASCII case-insensitive match for "togglePopover" or "auto", then:

      + +
        + +
      1. If invokee's popover visibility state is hidden, then set shouldShowPopover to + true.

      2. + +
      3. Otherwise set shouldHidePopover to true.

      4. + +
      + +
    4. + +
    5. if action is an ASCII case-insensitive match for "hidePopover", and invokee's popover visibility + state is showing, then set + shouldHidePopover to true. + +

    6. if action is an ASCII case-insensitive match for "showPopover", and invokee's popover visibility + state is hidden, then set + shouldShowPopover to true. + +

    7. If shouldShowPopover is true, then:

      + +
        + +
      1. Assert: shouldHidePopover is false.

      2. + +
      3. Run the show popover given invokee, false, and node.

      4. + +
      + +
    8. + +
    9. Otherwise, if shouldHidePopover is true and the result of + running check popover validity given popover, false, false, and null + is true, then:

      + +
        + +
      1. Assert: shouldShowPopover is false.

      2. + +
      3. Run the hide popover algorithm given invokee, true, true, and false.

      4. + +
      + +
    10. + +
    11. Otherwise, if invokee has an associated invocation action algorithm + then run the invokee's invocation action algorithm given action.

    12. + +
    + +