Skip to content

bug: hyperlink to another section jumps to wrong location on Firefox 57 #499

Closed as not planned
@anna-liao

Description

@anna-liao

While adding a new example in rust-cookbook, I noticed that the hyperlink jumps to the wrong location on Firefox 57.

See rust-lang-nursery/rust-cookbook#371 (review)

Comment from @budziq

I can reproduce it only on Firefox 57 which due to stylo is more prone to incomplete style flashes. What we experience here is firefox pointing to correct page location but then a highlight.js and mdbooks custom js kicks-in to style the code snippets and hide the lines starting with '#'. The links you are mentioning are in places particularly heavy with '#'. Hiding the '#' lines causes the page to get shorter but firefox viewport does not move anymore.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-JavaScriptArea: JavascriptA-StyleArea: Style (CSS, etc.)C-papercutCategory: A small usability bugE-Help-wantedExperience: Help Needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions