CSS Browser Support & Prefixes

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

Parameters

PrefixBrowser(s)
-webkit-Google Chrome, Safari, newer versions of Opera 12 and up, Android, Blackberry and UC browsers
-moz-Mozilla Firefox
-ms-Internet Explorer, Edge
-o-, -xv-Opera until version 12
-khtml-Konquerer

Remarks

Vendor prefixes are used to allow preview support for new CSS functionality where the functionality is not yet recommended by the specification.

It is recommended that you do not use vendor prefixes in production environments. These prefixes exist to test new functionality that is not yet finalized, and behavior is inherently unexpected. Simply using prefixes does not grant browser support for old browsers as you cannot guarantee the feature hasn't changed over time to perform differently, and it could still be broken in those old browsers you claim to support.

If supporting older browsers is important, you should instead consider using JavaScript or other solutions to imitate the effects and truly guarantee support for old browsers.

Browsers will use their prefixes and ignore the properties they don't understand.

NOTE: Prefixes should always appear before the official, unprefixed syntax. Otherwise they would be overwritten with the prefixed properties, which can be another implementation in the end.

If a browser supports both an unprefixed and prefixed version of a property, the most recent property to be declared will take precedence.



Got any CSS Question?