[Webkit-unassigned] [Bug 259261] New: [popover] element within shadow DOM breaks light dismiss calculation
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Jul 16 06:18:11 PDT 2023
https://bugs.webkit.org/show_bug.cgi?id=259261
Bug ID: 259261
Summary: [popover] element within shadow DOM breaks light
dismiss calculation
Product: WebKit
Version: Safari Technology Preview
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: DOM
Assignee: webkit-unassigned at lists.webkit.org
Reporter: westbrook.johnson at gmail.com
When a [popover] element that is a descendant of an open [popover] element exists within a shadow DOM, the topmost clicked [popover] element (https://html.spec.whatwg.org/multipage/popover.html#topmost-clicked-popover) calculation is no done with the composed path which causes the descendant [popover] element to close the ancestor [popover] element at open time.
You can repro this here: https://codepen.io/Westbrook/pen/BaGrdoq
With the following code:
<button popovertarget="popover" popovertargetaction="toggle">Toggle</button>
<div id="popover" popover>
<template shadowrootmode="open">
Outter
<button popovertarget="popover-2" popovertargetaction="toggle">Toggle</button>
<div id="popover-2" popover>
Inner
</div>
</template>
</div>
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230716/ed28fd63/attachment.htm>
More information about the webkit-unassigned
mailing list