diff --git a/source b/source index c56d43c7b1e..e9030e7394e 100644 --- a/source +++ b/source @@ -1828,6 +1828,10 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
  • If removedNode's popover attribute is not in the no popover state, then run the hide popover algorithm given removedNode, false, false, and false.

  • + +
  • If removedNode is a button, then run + check and possibly close popover stack given removedNode's node + document.

  • A HTMLInputElement : HTMLElement { element's text entry cursor position to the beginning of the text control, and set its selection direction to "none".

    + +
  • Run check and possibly close popover stack given the element's node + document.

  • @@ -81861,6 +81868,11 @@ dictionary DragEventInit : MouseEventInit {
    1. If namespace is not null, then return.

    2. +
    3. If localName is disabled, form, or popovertarget, + then run check and possibly close popover stack given element's + node document.

    4. +
    5. If localName is not popover, then return.

    6. @@ -82411,6 +82423,42 @@ dictionary DragEventInit : MouseEventInit {
    7. Return true.

    +

    To check and possibly close popover stack for a Document + document:

    + +
      +
    1. Let stack be document's auto popover list.

    2. + +
    3. Let index stack's size - 1.

    4. + +
    5. +

      While index is greater than 0:

      + +
        +
      1. +

        If the result of running topmost popover ancestor given + stack[index] is not stack[index - 1], then:

        + +
          +
        1. Run hide all popovers given document.

        2. + +
        3. Return.

        4. +
        +
      2. + +
      3. Set index to index - 1.

      4. +
      +
    6. +
    + +
    +

    Check and possibly close popover stack is used to close multiple popovers which + are only open due to their ancestral relationship to each other in the case where that ancestral + relationship has been broken. Show popover also closes popovers which don't meet + this ancestral relationship by calling hide all popovers + until.

    +
    +

    The popover target attributes

    Buttons may have the following content attributes: