Page MenuHomePhabricator

Vector 2022's sticky header toolbar overlaps beginning of a content linked with an achor
Closed, DuplicatePublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • Make sure you are logged in and use Vector 2022 (default) skin.
  • Open a Wikipedia link with an URL fragment to a paragraph anchor link (e.g. Wikipedia#Decline_in_participation_since_2009 (permalink).
  • (Also make sure the link is NOT opened in a window with the same page already opened, in this case the problem does not occur.)

What happens?:

A toolbar (sticky header) appears and overlaps the beginning of the paragraph.

What should have happened instead?:

Amount of automatic scroll on those links opening should be such that there is a room for the toolbar.
As is the case for proper section links.

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

Wikipedia-Vector2022-anchor-link-toolbar-overlap.png (971×1 px, 247 KB)
The screenshot is showing Mozilla Firefox window with Wikipedia user logged in and above example link opened (top).
Below is the same, but with not-logged-in / anonymous user in a Private browsing (incognito) window,
displaying the section correctly from the beginning (“In November 2009, a researcher …”)

The problem happens in both (current) Mozilla Firefox and Google Chrome browsers (no other one tested).

Event Timeline

This has been bugging me for some time (months or years) already. Took me some amount of testing to realize it's a Vector 2022 skin issue for logged in user only. (Initially I wanted to report scrolled-out beginning of anchor links, generally.)

I am not 100% certain this is not a duplicate issue (but tried searching). But have found possibly related closed one: T310424: Vector 2022's sticky header overlaps Who Wrote That's banner (which i then took some little inspiration from for this reporting)

In some cases, it seems that during the toolbar appearance, page is scrolled correctly anyway. (And, precisely. Unlike as for section links, where a couple of lines above the section header from the previous section are visible too.)
Not sure what exact conditions are needed, but it happens during the same browsing session with the same link, in minor amount of cases.
Btw, I almost always do open these links in a new tab (Ctrl+click).

mykhal renamed this task from Vector 2022's sticky header toolbar overlaps beginning of a paragraph with an achor to Vector 2022's sticky header toolbar overlaps beginning of a content linked with an achor.Oct 21 2025, 6:16 PM

It seems to behave same way for

Yup, I experience this issue very often. I've started changing some shortcuts to point to a header rather than an anchor, if both are placed in the same spot, to fix it.

@A_smart_kitten Right, it seems to be describing essentially the same problem. I did not see that one. I would not be against merging.

This comment was removed by mykhal.