/* anchor.js — keeps a dropdown's menu on the screen in a browser without CSS anchor positioning. First-party, dependency-free, and app-owned from the moment it is scaffolded. A dropdown hugs its summary, and its menu opens toward the leading side. Where the browser has anchor positioning, tokens.css flips the menu when there is no room there, and this file does nothing at all: it tests for the feature first and returns. Where it does not, the menu hangs from the
' own box, and nothing in a stylesheet knows where that box is on the screen, so a dropdown at the leading edge would open its menu off it. Here the menu is measured as it opens, and when it would leave the screen and fits better from the summary's other edge, the
is marked .is-flip-inline, which tokens.css opens from that edge, and measured again while it is open if the window is resized or turned. Only inline: a menu with no room below still opens below. Delete this file and its