Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How necessary are CSS3 vendor prefixes right now? [duplicate]

I was just wondering to what extent is it still necessary to specify vendor prefixes like 'webkit', 'moz', 'ms' or 'o' in CSS these days.

If I understand correctly, opera switched to webkit, so that drops '-o-', right? IE dropped the need for '-ms-' in IE10, but do you still need it for older versions? And I'm not sure what the story is with '-moz-' right now.

Basically all my CSS3 seems to work just fine across all (up to date) browsers without specifying any prefix, so I was just wondering what is necessary and what isn't necessary as of mid 2014.

EDIT: Basically I'm just wondering does anyone have an up-to-date list of what prefixes are necessary and under what conditions are they necessary.

like image 1000
aadu Avatar asked Aug 21 '14 13:08

aadu


People also ask

Are vendor prefixes still needed 2022?

"...are there still features now that haven't been fully supported and require prefixes?" Yes, and there will always be, as it's kind of an industry standard that vendors use their prefix on newly drafted properties/methods until those become a standard.

What are vendor prefixes and how are they useful?

Vendor prefixes are one way browsers use to give us CSS developers access to newer features not yet considered stable. Before going on keep in mind this approach is declining in popularity though, in favour of using experimental flags, which must be enabled explicitly in the user's browser.

What is the purpose of using prefixes in CSS?

CSS vendor prefixes, also sometimes known as or CSS browser prefixes, are a way for browser makers to add support for new CSS features before those features are fully supported in all browsers.

Is webkit needed anymore?

There is no need in -webkit- prefix for gradients in Chrome and Safari. Only older Android browsers still need it.


2 Answers

You can build a filtered list on this web page and show all of the required prefixes.

http://caniuse.com/#comparison

like image 116
Blowsie Avatar answered Nov 10 '22 20:11

Blowsie


for the most part, you may find things work great in the latest browsers without vendor prefixes. BUT I will point out 3 reasons why you might want to keep using them at least some of the time and then you decide for yourself when you think it is appropriate.

  1. (as was mentioned already) Not everyone is using the most up to date browser.
  2. You won't break anything by using vendor prefixes even in cases when you don't need to, so it can only improve your site and not harm it.
  3. If your using prefixes (etc) from a service like http://www.colorzilla.com/gradient-editor/ then it's a trivial copy-paste and you gain nothing by not using it (except perhaps a smidgen of file space)
like image 40
KnightHawk Avatar answered Nov 10 '22 20:11

KnightHawk