npm.io
10.5.2 • Published 2 weeks agoCLI

autoprefixer

Licence
MIT
Version
10.5.2
Deps
5
Size
197 kB
Vulns
0
Weekly
0
Stars
22.3K

Autoprefixer Cult Of Martians

PostCSS plugin to parse CSS and add vendor prefixes to CSS rules using values from Can I Use. It is recommended by Google and used in Twitter and Alibaba.

Write your CSS rules without vendor prefixes (in fact, forget about them entirely):

::placeholder {
  color: gray;
}

.image {
  width: stretch;
}

Autoprefixer will use the data based on current browser popularity and property support to apply prefixes for you. You can try the interactive demo of Autoprefixer.

::-moz-placeholder {
  color: gray;
}
::placeholder {
  color: gray;
}

.image {
  width: -moz-available;
  width: -webkit-fill-available;
  width: stretch;
}

Twitter account for news and releases: @autoprefixer.

Sponsored by Evil Martians

Keywords