Anchor scroll offset

Could we just mock out `getBoundingClientRect` so that we don't have to deal with css sizing here? This would make the test more robust...