autoprefixer
TypeScript icon, indicating that this package has built-in type declarations

10.4.21 • Public • Published

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;
}
::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 here.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
10.4.215,087,712latest

Version History

VersionDownloads (Last 7 Days)Published
10.4.215,087,712
10.4.207,429,274
10.4.191,553,551
10.4.18555,111
10.4.17389,376
10.4.16950,643
10.4.15235,263
10.4.141,171,857
10.4.13754,154
10.4.12313,770
10.4.1113,123
10.4.102,522
10.4.97,648
10.4.8102,126
10.4.7218,495
10.4.6668
10.4.587,792
10.4.4105,116
10.4.32,479
10.4.2156,209
10.4.18,067
10.4.067,261
10.3.716,501
9.8.82,348,565
10.3.64,072
9.8.713,687
10.3.51,096
10.3.412,351
10.3.32,066
10.3.22,301
10.3.125,523
10.3.01,210
10.2.629,922
10.2.556,207
10.2.455,508
10.2.38,464
10.2.211
10.2.136,946
10.2.0212
10.1.09,260
10.0.43,040
10.0.3679
10.0.249,183
10.0.110,062
10.0.01,975
9.8.6879,863
9.8.531,347
9.8.423,051
9.8.3540
9.8.23,787
9.8.11,158
9.8.057,011
9.7.650,471
9.7.515,559
9.7.4108,778
9.7.331,726
9.7.210,461
9.7.154,638
9.7.06,764
9.6.510,232
9.6.44,188
9.6.310
9.6.2203
9.6.1102,609
9.6.016,921
9.5.127,552
9.5.07,038
9.4.102,543
9.4.91,859
9.4.81,422
9.4.74,373
9.4.633,836
9.4.51,164
9.4.41,027
9.4.39,567
9.4.21,823
9.4.141
9.4.0116
9.3.112,564
9.3.0821
9.2.11,861
9.2.0639
9.1.517,759
9.1.410
9.1.31,216
9.1.2123
9.1.1233
9.1.0611
9.0.2703
9.0.1189
9.0.0901
8.6.595,770
8.6.42,780
8.6.31,566
8.6.21,743
8.6.1267
8.6.0728
8.5.2670
8.5.1671
8.5.03,027
8.4.13,875
8.4.074
8.3.01,266
8.2.04,236
8.1.0618
8.0.0368
7.2.6256,020
7.2.513,105
7.2.4517
7.2.32,488
7.2.2637
7.2.1227
7.2.07
7.1.655,462
7.1.5996
7.1.42,270
7.1.3912
7.1.27,348
7.1.111,184
7.1.01,745
7.0.1252
7.0.016
6.7.7436,607
6.7.6535
6.7.5706
6.7.475
6.7.364
6.7.21,979
6.7.115
6.7.01,542
6.6.11,869
6.6.0851
6.5.4704
6.5.32,687
6.5.228
6.5.11,279
6.5.0310
6.4.1694
6.4.01,647
6.3.71,514
6.3.61,235
6.3.548
6.3.48
6.3.3100
6.3.231
6.3.1158
6.3.014
6.2.3254
6.2.232
6.2.14
6.2.010
6.1.2121
6.1.124
6.1.0364
6.0.3190
6.0.292
6.0.110
6.0.017
5.2.03,418
5.1.1303
5.1.012
5.0.07
4.0.028
3.1.027
3.0.013
2.2.0884
2.1.19
2.1.08
2.0.28
2.0.18
2.0.08
1.3.12,715
1.3.07
1.2.0126
1.1.20140605348
1.1.2014052310
1.1.201405218
1.1.201405127
1.1.2014051010
1.1.201404307
1.1.201404297
1.1.201404109
1.1.201404036
1.1.201403274
1.1.201403196
1.1.201403028
1.1.2014022611
1.1.201402227
1.1.201402188
1.0.20140213388
1.0.201402035
1.0.201401305
1.0.201401178
1.0.201401106
1.0.201401097
1.0.201401037
1.0.201312224
0.8.201312131,436
0.8.201312095
0.8.201311048
0.8.201310298
0.8.201310207
0.8.201310175
0.8.2013101510
0.8.201310096
0.8.201310078
0.8.201310066
0.8.201310019
0.8.2013092310
0.8.201309199
0.8.201309117
0.8.201309067
0.8.201309036
0.8.201309028
0.7.20130824489
0.7.201308108
0.7.201308087
0.7.201308076
0.7.201308066
0.7.201308055
0.6.201307317
0.6.201307305
0.6.201307298
0.6.201307285
0.6.201307218
0.6.201307168
0.5.201306295
0.5.201306265
0.5.201306255
0.5.201306178
0.5.201306166
0.5.201306156
0.4.2013060311
0.4.2013053011
0.4.201305288
0.4.201305245
0.4.201305215
0.4.201305157
0.4.201305075
0.3.201305027
0.3.201304277
0.3.201304248
0.3.201304237
0.2.201304137
0.1.2013040915

Package Sidebar

Install

npm i autoprefixer

Weekly Downloads

24,377,751

Version

10.4.21

License

MIT

Unpacked Size

199 kB

Total Files

83

Last publish

Collaborators

  • ai