Implement new behavior for popovers contained within invokers
In this case:
<button popovertarget=foo>Activate
<div popover id=foo>Clicking me shouldn't close me</div>
</button>
clicking the button properly activates the popover, however,
clicking on the popover itself after that should not close
the popover. It currently does because the popover click
bubbles to the <button>
and activates the invoker, which
toggles the popover closed.
This CL changes that behavior so that clicks on the popover
in the case above no longer re-invoke the popover.
Spec PR:
whatwg/html#10770
Bug: 379241451
Change-Id: Iab67127c46a97a081a7818bfd917864729bf8b5c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6026982
Auto-Submit: Mason Freed masonf@chromium.org
Commit-Queue: Mason Freed masonf@chromium.org
Reviewed-by: David Baron dbaron@chromium.org
Cr-Commit-Position: refs/heads/main@{#1384498}