S
S
Senseich2018-06-09 17:53:27
Layout
Senseich, 2018-06-09 17:53:27

How can I configure the autoprefixer to add the -ms prefix?

Hello! My meticulousness haunts me ) I saw it on this template
There for a gradient background, the prefix -ms
5b1be9131ae5d199907136.jpeg
is added. I didn’t twist the settings of my autoprefixer, it doesn’t add this prefix at all. How to register correctly so that it is added?
I have it written like this>1%, last 10 versions, IE 9

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Pushkarev, 2018-06-09
@AXP-dev

IE 10 without prefixes already understands everything, it used to be needed

.example {
  /* Safari 4-5, Chrome 1-9 */
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #000), color-stop(100%, #fff));

  /* Safari 5.1, Chrome 10+ */
  background: -webkit-linear-gradient(top, #000 0%, #fff 100%);

  /* Firefox 3.6+ */
  background: -moz-linear-gradient(top, #000 0%, #fff 100%);

  /* IE 6 - 9 */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#000000', endColorstr='#ffffff',GradientType=0 );

  /* IE 10+ */
  background: -ms-linear-gradient(top, #000 0%, #fff 100%);

  /* Opera 11.10+ */
  background: -o-linear-gradient(top, #000 0%, #fff 100%);	
}

https://caniuse.com/#search=css-gradients

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question