Popover
A floating panel anchored to its trigger, on the native popover attribute.
Anchoring
The panel opens below the trigger and flips above when out of room. Light
dismiss and Esc come from popover="auto"; the panel lives in
the top layer, so it never fights z-index.
align="start" lines the panel up with the trigger's left edge; align="end" tracks its right edge with the panel's.
Examples
Anchored below the trigger, flipped above when out of room.
The panel's right edge tracks the trigger's right edge.