Devashish Dixit
Devashish Dixit

Reputation: 1193

CSS prefixes for different browsers?

We all know that CSS prefix for Mozilla (Gecko), when we refer that property using DOM, is Moz. For example : MozTransform.

I have a list of prefixes used in CSS for different browsers, but I also want to know the prefixes used when referring them using DOM.

List of CSS prefixes:

-moz-
-webkit-
-apple-
-o-
-xv-
-ms-
-mso-
-atsc-
-wap-
-khtml-
-prince-
-ah-
-hp-
-ro-
-rim-
-tc-

Upvotes: 6

Views: 442

Answers (3)

bruce
bruce

Reputation: 64

Spec says that any letter after a hyphen should be capitalised. So -o- becomes O, -moz- becomes Moz.

Internet Explorer doesn't follow spec: -ms- stays as ms. Webkit hedges its bet and goes with webkit and Webkit.

Upvotes: 3

Misha Reyzlin
Misha Reyzlin

Reputation: 13896

Read this https://github.com/Modernizr/Modernizr/issues/21 from Modernizr library.

Upvotes: 0

Shadow2531
Shadow2531

Reputation: 12170

Opera's is an uppercase 'O' for style.property in the DOM.

Upvotes: 1

Related Questions