Elastic/Stretching UI With CSS Anchors
Opposing insets normally stretch a positioned element across its container. Point those insets at CSS anchors instead, and you get an element that stretches between anchors, which is exactly what you need for a stretchy selection indicator that snaps from one option to the next.