Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do we have to use non-standard/browser specific CSS vendor prefixes anymore?

Given that I'm not really bothered about backwards compatibility (I'm exploring CSS3 and HTML5 based design, rather than relying on on graphics and such) what are the benefits of using css like:

-moz-box-shadow:    3px 3px 5px 6px #ccc;
-webkit-box-shadow: 3px 3px 5px 6px #ccc;

Over just using:

box-shadow: 3px 3px 5px 6px #ccc;

The latter appears to work fine in most modern browsers (except the obvious! :p looking at you IE! Although I'll assume it probably works in IE9, but I can't test as I'm on a Mac at the moment).

Am I seeing things? Do we need to use the browser specific code above? Or are all browsers moving towards supporting the standards?

like image 341
Thomas Clayson Avatar asked Jan 17 '23 10:01

Thomas Clayson


2 Answers

It really depends on which features and which browsers you want to fully support. Even now some browsers are lagging.

Here is a really excellent guide: http://caniuse.com/

like image 50
Diodeus - James MacFarlane Avatar answered Jan 19 '23 23:01

Diodeus - James MacFarlane


All browsers generally move towards standards support.

There are two issues

  1. A lot of the CSS3 rules available to us to use are still under review - i.e. not part of any standard yet.
  2. Some people persist in using older versions of a browser, which may not have support for non-prefixed rules.

For these two reasons, we continue to use vendor-prefixed CSS rules in our stylesheets.

like image 26
Michael Robinson Avatar answered Jan 19 '23 23:01

Michael Robinson