-
Notifications
You must be signed in to change notification settings - Fork 3.2k
popovertarget and shadow DOM #9109
Copy link
Copy link
Open
Labels
addition/proposalNew features or enhancementsNew features or enhancementstopic: popoverThe popover attribute and friendsThe popover attribute and friendstopic: shadowRelates to shadow trees (as defined in DOM)Relates to shadow trees (as defined in DOM)
Metadata
Metadata
Assignees
Labels
addition/proposalNew features or enhancementsNew features or enhancementstopic: popoverThe popover attribute and friendsThe popover attribute and friendstopic: shadowRelates to shadow trees (as defined in DOM)Relates to shadow trees (as defined in DOM)
So in this example from https://html.spec.whatwg.org/multipage/popover.html#the-popover-target-attributes
The close button will not work if
<article>is a custom element instead. This is a pretty common thing with shadow DOM:ids are scoped to the shadow root.It would be awesome though if the example above could work with custom elements.
Perhaps add
popovertarget=":host"to the spec?