This set of examples demonstrates usage of the Popover API (also see the specification).
::backdrop pseudo-element.popover="hint" value to create tooltip popovers that show on button mouseover and focus, without dismissing the auto popovers shown when the buttons are clicked on. The hint popovers are controlled via JavaScript.Some of these examples are not fully accessible; they were written to show how the Popover API behaves. The following notes comment on their accessibility status.
::backdrop. The popover is still non-modal, so the content behind it is not made inert and remains focusable and available to assistive technology. If the rest of the page should be inert, use a modal <dialog> opened with showModal() instead.menu or menu keyboard handling.<output> element. This element has an implicit ARIA status role, which makes it a live region, so screen readers announce it; this is based on the status message example in the HTML specification. The toasts themselves are kept outside the <output>, because when several are shown at once some browsers re-announce all of them on every change. Frequent announcements can be disruptive, so consider how often your notifications appear.See Popover accessibility features for what the API does provide.