• Position floating relative to anchor with flip + shift collision handling. Sets inline position/top/left and a data-hl-side attribute for CSS to react to (e.g. arrow direction). Returns the resolved side/align.

    No-ops gracefully when the anchor has no layout box (e.g. jsdom), leaving the floating element where CSS placed it.

    Parameters

    Returns PositionResult