https://github.com/avanelsas/baredom
several fixes to x-popover and x-context-menu, which could cover their anchor in a viewport
• x-popover flips above or below on vertical fit only (reported and fixed by @markaddleman)
• x-context-menu no longer covers its pointer or anchor near the viewport edge.
• x-popover and x-context-menu no longer cover their anchor when the panel fits neither
• above nor below.
• x-popover no longer shows scrollbars caused by its arrow.
• A portal x-popover keeps its --x-popover-panel-max-height.
Demos for all web components https://avanelsas.github.io/baredom/