Skip to content

[css-overscroll] position: sticky elements should not move during overscroll when in stuck state #8309

@atomiks

Description

@atomiks

Originally made a comment here, but seemed to get lost.

Problem

When combining position: fixed and position: sticky elements together, the latter moves during overscroll despite being in the "stuck" or "fixed" state, causing the issues seen in the demos below. I have noticed this on several sites where elements that should remain together now detach and overlap in undesirable ways when mixing each value.

Demos

Screen.Recording.2023-01-14.at.5.32.46.am.mov
Screen.Recording.2023-01-14.at.5.34.28.am.mov

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions