Reported by @Legoktm. To reproduce:
- Navigate to a page that has auto-collapsing templates near the top of the page, such as WP:ANI.
- Use the table of contents to navigate to a section partway down the page.
- Reload the page.
Expected outcome: upon being reloaded, the viewport is focused on the selected section.
Actual outcome: the viewport is slightly offset.
I can reproduce this in both Chrome 47 and Firefox 40 on OS X.