Skip to content

[css-conditional] [css-position] Allow feature detection of position: sticky tracking the nearest scrolling container per axis. #13677

@bramus

Description

@bramus

In #865 (comment) we resolved to have position: sticky track the nearest scrolling container per axis.

I’ve made some early noise about this change on social media and, in response, received two individual requests to be able to feature detect this. Currently, authors have some convoluted workarounds that rely on scroll-driven animations or lots of JavaScript, which they want to keep in place as a fallback.

I believe this is a good candidate for @supports named-feature() as I don’t think there is another way how authors would be able to detect this.

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