0
Is it compulsory to use browser prefixes in Css??
Yes, browser- prefixes are needed for old Css but for today browser compatibility do I need to use them all time. And when we are making professional websites, do we need to use them?
2 Antworten
+ 4
Yes. But I never add them manually.
Use an autoprefixer with webpack or what ever preprocessing library you're using.
Here is an example of an article you can review.
https://survivejs.com/webpack/styling/autoprefixing/
+ 2
Unfortunately yes, gradient for example are different across browsers and what you're doing with fallbacks and browsers prefixes is making sure the code runs everywhere the same, no matter how old someone's browser is.
Even professional sites have source code available and you'll notice plenty prefixes in them