Skip to content

[css-position][css-sticky] Should overflowing sticky element continue scrolling until meeting opposite offset? #2558

@jonjohnjohnson

Description

@jonjohnjohnson

If a sticky element happens to be larger than it's scrollport and offset in the scrolling dimension, I'm guessing the lion's share of intent isn't what is represented in the spec and implementation. It currently sticks to the designated edge, continuing to hide/clip the overflowing edge until scrolling all the way to the other side of it's containing block.

Examples -> http://jsbin.com/fajosud/2

This particular case where a sticky element overflows its scrollport isn't exactly underspecified as much as its behavior just doesn't break or provide much utility.

I'd imagine it more useful if when scrolling from an elements sticky edge, it continues to scroll until meeting its opposite offset value, then sticking, if its height plus offset value "overflows" the opposite edge of the scrollport.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions