Do I still need to use the browser prefixes for the linear-gradient property?
background-image: -webkit-linear-gradient(top, #2F2727, #1a82f7);
background-image: -moz-linear-gradient(top, #2F2727, #1a82f7);
background-image: -ms-linear-gradient(top, #2F2727, #1a82f7);
background-image: -o-linear-gradient(top, #2F2727, #1a82f7);
I only want the support of latest browser versions. I tried following, but does not work.
background-image: linear-gradient(top, #2F2727, #1a82f7);
According to Can I use, as of June 2017, 93.75% of Internet usage is on a browser that supports unprefixed linear gradients (97.2% in the US). For most people, this means you don’t need to prefix your gradients anymore.
Below is the first compatible version and release date for the most common desktop browsers:
Information on compatibility history of other browsers (including mobile browsers) is available at Can I use.