The Popover API replaces a lot of JS
The Popover API (popover attribute + popovertarget) handles tooltips, dropdowns, and popovers with zero JavaScript. It manages z-index stacking, light-dismiss behavior, and focus. Another win for the platform.