Skip to content

[css-anchor-position-1] Remembered Scroll Offset + Scrollable Overflow #12898

@dshin-moz

Description

@dshin-moz

Scroll + remembered scroll offset interact in WPT anchor-scroll-chained-002.html.
I believe the reference case is expecting the following:

  • JS-induced scroll happens
  • Then, the anchor recalculation point is hit
  • Then, scrollable overflow for #scroller1 is computed.

This results in a smaller scroller1.scrollHeight, than say, inserting a rAF before the existing JS.

See attached test case, modified for more visibility. asc2.html EDIT: New testcase, outputting to console, as the previous one accidentally caused reflows 🤦 asc2.html)

Testcase aside, could this mean different scrollbar sizes depending on loading time of a website?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions