HTMLworkingbaseline-2024
The Popover API
Light dismiss, by default.
A declarative API for tooltips, dropdowns, and menus. Every popover gets light-dismiss, ESC-to-close, and the top layer for free.
Popover with popovertarget
HTML+CSS+JSintro Press Run to execute
The [popover] element starts hidden; clicking the button — wired only by popovertarget="info", no JS — opens it in the top layer. Because the default is popover="auto", clicking outside or pressing ESC dismisses it for free.