Right now there's no way for a page to override the scroll anchoring heuristics, which seems unfortunate, since that means it's unreliable.
Maybe we should consider adding an overflow-anchor: always to force anchoring to happen regardless of the style changes that happen in the scroll container.
cc @hiikezoe @chrishtr