DEV Community

Discussion on: 6 Powerful CSS Techniques You Can Use Instead of Javascript

Collapse
 
mehdico profile image
Mehdi Mousavi

scroll-behavior: smooth; is not supported in Safari, so you have to use JS ;)

Collapse
 
maxart2501 profile image
Massimo Artizzu

... or let it gracefully degrade in Safari.
It's not something that would break the UI 😉

Collapse
 
dionarodrigues profile image
Diona Rodrigues • Edited

I agree with you that for some browsers JS is necessary depending on the feature 😢🤷‍♂️. But for most of modern browsers we no longer need JS anymore for a lot of new CSS features. 🎉