CSS prefixes for different browsers?

We all know that the CSS prefix for Mozilla (Gecko), when we refer to this property using the 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 accessing them using the DOM.

CSS prefix list:

  -moz-
 -webkit-
 -apple-
 -o-
 -xv-
 -ms-
 -mso-
 -atsc-
 -wap-
 -khtml-
 -prince-
 -ah-
 -hp-
 -ro-
 -rim-
 -tc-
+6
source share
3 answers

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

Internet Explorer is out of specification: -ms- remains as ms. Webkit hedges its bet and comes with webkit and Webkit.

+3
source

Opera is the capital letter 'O' for style.property in the DOM.

+1
source

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

0
source

Source: https://habr.com/ru/post/900334/


All Articles