Why doesn't "position: sticky" work in Safari?

There's a CSS property called position: sticky that makes things stick to the top of the browser window (like a navbar) while scrolling. Using the Developer tools, it shows that "position: sticky" is invalid in Safari. This works fine in Chrome and Firefox, but for some reason not in Safari.


I have Safari 12.1.1 running on macOS Mojave 10.14.5.


I've also tried position: webkit-sticky but Safari also thinks that is an invalid CSS property.

iMac 27", macOS 10.14

Posted on Jun 21, 2019 11:43 AM

Reply

Similar questions

5 replies

Jun 21, 2019 12:19 PM in response to VikingOSX

Unfortunately it doesn't clear anything up. I'm using it correctly, but Safari says "sticky" and "webkit-sticky" are unsupported properties.



It's very strange that Safari doesn't support it. The "Can I Use" website states that Safari does support this property with the "webkit" prefix, but as shown above, Safari says both "sticky" and "webkit-sticky" are unsupported.


This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Why doesn't "position: sticky" work in Safari?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.