Local Anchor issue


(erosman) #1

I have noticed that the anchor doesn’t scroll to the correct location if clicked on the page.

Example:

Is there a reason?!


(Eric Shepherd) #2

Not quite sure what you mean. It seems to have scrolled to the right place to me in this instance, given the link I’m seeing.

There is an issue where sometimes what you expect to be visible is not because it’s overlapped by the jump bar at the top of the page. That’s something that we already have a bug on file for, and it hopefully will be fixed before too long.

Sheppy


(erosman) #3

As mentioned, “I have noticed that the anchor doesn’t scroll to the correct location if clicked on the page.”

If you click the above link, it scrolls to the right place which is the start of the footnote.

If you go to https://developer.mozilla.org/en-US/Add-ons/WebExtensions/manifest.json/content_security_policy and then click on the Allow remote scripts from "https://example.com": (see note 1 ) for me it scrolls passed the anchor so that the first line on top line visible is:

extensions listed on addons.mozilla.org due to major security issues.

Note: I am on Firefox 59.0a1


(Jwhitlock) #4

If I follow the link to #exampleNote_1, then I see this:

If I hide the sticky table of contents (using developer tools, add a visibility: hidden attribute to <div class="toc">, then I see this:

The anchor goes to the correct location, but the table of contents gets in the way. This is tracked in bug 1424403.