Y-up menu geometry and hit testing.
Popup menus are global overlays, so geometry is expressed in the owning widget’s local coordinate space but clamped against the current viewport.