snap: fix and document anchor snap resolution
snap: use `Infinity` to specify infinite range
snap: if snap.range < 0, change it to Infinity
snap: fix process for resolving anchor snapping