← Back to release summary

CSS position: sticky scroll initial position into view

Category
CSS
Type
No developer-visible change
Status
In developer trial (Behind a flag) (Chrome 92)
Intent stage
Start prototyping

Summary

For the purposes of any operation targetting the scroll position of a sticky positioned element (or one of its descendants), the sticky positioned element must be considered to be positioned at its initial (non-offsetted) position. This was discussed in https://github.com/w3c/csswg-drafts/issues/1459.

Standards & signals

Samples: https://jsbin.com/simivof/edit?html,output

View on chromestatus.com