Improve consistency and reduce the chance of confusion by aligning the
comment to the top of the window frame when scrolling to a comment, as
it would be when scrolling without JavaScript, and as it is when
clicking or following a comment ID on the same page.
Thank you for pointing this out, I added Element.scrollIntoView before it was as widely supported. Most browsers support it now, but seem to treat it differently, though. This is a nice fix.
Improve consistency and reduce the chance of confusion by aligning the comment to the top of the window frame when scrolling to a comment, as it would be when scrolling without JavaScript, and as it is when clicking or following a comment ID on the same page.