Bug 1692364 [wpt PR 27598] - Add light dismiss by anchor click for <popup>, a=testonly
commit26e2220dcd7c21afe615de26039e71bb8efcaac6
authorMason Freed <masonfreed@chromium.org>
Fri, 12 Feb 2021 16:27:59 +0000 (12 16:27 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Mon, 15 Feb 2021 11:35:20 +0000 (15 11:35 +0000)
tree44d5ab3e37f91c36a8f2273fa60b069c611bf6b2
parent62a6b8f65698d88e77a0dd9746fdbdeec9c2e8a5
Bug 1692364 [wpt PR 27598] - Add light dismiss by anchor click for <popup>, a=testonly

Automatic update from web-platform-tests
Add light dismiss by anchor click for <popup>

Prior to this CL, clicking on the anchor for an open <popup> would
cause the popup to be hidden and then immediately re-opened. With
this CL, the anchors for all open popups are also considered when
handling light dismiss events.

This also moves the logic for light dismiss over to the
HTMLPopupElement, to keep Node clean.

Bug: 1168738
Change-Id: Iccd39a481e23dd3ad6c8de35ad9ab1a028d10a85
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2691666
Commit-Queue: Mason Freed <masonfreed@chromium.org>
Auto-Submit: Mason Freed <masonfreed@chromium.org>
Reviewed-by: Ionel Popescu <iopopesc@microsoft.com>
Cr-Commit-Position: refs/heads/master@{#853434}

--

wpt-commits: dc85237248378dfbae510cd96ab55873209d39c8
wpt-pr: 27598
testing/web-platform/tests/html/semantics/interactive-elements/the-popup-element/popup-anchor-nesting.tentative.html [new file with mode: 0644]
testing/web-platform/tests/html/semantics/interactive-elements/the-popup-element/popup-light-dismiss.tentative.html