Open Bug 1898619 Opened 4 months ago Updated 4 months ago

Firefox incorrectly jumps to anchor with "reduced motion" enabled on MacOS

Categories

(Core :: Panning and Zooming, defect, P3)

Firefox 128
Desktop
All
defect

Tracking

()

Tracking Status
firefox-esr115 --- affected
firefox126 --- affected
firefox127 --- affected
firefox128 --- affected

People

(Reporter: claas, Unassigned)

References

Details

  1. In Mac OS, enabled "Reduced motion" (System settings > Display > Accessibility > Reduced motion).
  2. Go to https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-motion
  3. Click an entry in the TOC on the right (e.g. "User preferences").
  4. Expected: "User preferences" header to be below top navigation.
  5. Actual: "User preferences" header hidden by top navigation.

Note: Clicking the same entry again scrolls to the right position.

Important to note that we use scroll-margin-top to prevent the header to appear behind the top navigation, but this seems to be ignored here.

I can reproduce the issue on Nightly128.0a1 Windows11 but not on Chrome.
Interestingly, when the bug occurs, if you click the link again, the page scrolls to the correct position.

Component: Untriaged → Panning and Zooming
OS: macOS → All
Product: Firefox → Core
Hardware: x86_64 → Desktop

see also: bug 1816003

Severity: -- → S3
Priority: -- → P3
See Also: → 1816003
You need to log in before you can comment on or make changes to this bug.