autoprefixer
Parse CSS and add vendor prefixes to CSS rules using values from the Can I Use website
Last updated 4 years ago by ai .
MIT · Repository · Bugs · Original npm
$ cnpm install autoprefixer 
SYNC missed versions from official npm registry.

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 {
  background-image: url(image@1x.png);
}
@media (min-resolution: 2dppx) {
  .image {
    background-image: url(image@2x.png);
  }
}

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;
}
:-ms-input-placeholder {
  color: gray;
}
::placeholder {
  color: gray;
}

.image {
  background-image: url(image@1x.png);
}
@media (-webkit-min-device-pixel-ratio: 2),
       (min-resolution: 2dppx) {
  .image {
    background-image: url(image@2x.png);
  }
}

Twitter account for news and releases: @autoprefixer.

Sponsored by Evil Martians

Docs

Read full docs on GitHub.

Current Tags

  • 10.4.14                                ...           latest (2 years ago)

30 Versions

  • 10.4.14                                ...           2 years ago
  • 10.4.13                                ...           3 years ago
  • 10.4.12                                ...           3 years ago
  • 10.4.11                                ...           3 years ago
  • 10.4.8                                ...           3 years ago
  • 9.6.1                                ...           6 years ago
  • 10.4.7                                ...           3 years ago
  • 10.4.4                                ...           3 years ago
  • 10.4.2                                ...           4 years ago
  • 9.8.8                                ...           4 years ago
  • 10.3.1                                ...           4 years ago
  • 8.6.5                                ...           7 years ago
  • 8.2.0                                ...           7 years ago
  • 10.2.5                                ...           4 years ago
  • 9.8.6                                ...           5 years ago
  • 9.8.2                                ...           5 years ago
  • 9.8.0                                ...           5 years ago
  • 6.5.4                                ...           9 years ago
  • 9.0.2                                ...           7 years ago
  • 7.1.5                                ...           8 years ago
  • 6.3.6                                ...           9 years ago
  • 6.7.2                                ...           9 years ago
  • 7.1.2                                ...           8 years ago
  • 6.3.1                                ...           10 years ago
  • 9.6.0                                ...           6 years ago
  • 6.7.7                                ...           8 years ago
  • 7.1.6                                ...           8 years ago
  • 7.1.1                                ...           8 years ago
  • 7.2.6                                ...           8 years ago
  • 9.7.6                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (6)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org