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,157,807latest

Version History

VersionDownloads (Last 7 Days)Published
10.4.215,157,807
10.4.207,903,647
10.4.191,690,680
10.4.18598,933
10.4.17401,617
10.4.16985,435
10.4.15251,688
10.4.141,220,274
10.4.13794,108
10.4.12323,840
10.4.1114,505
10.4.102,579
10.4.96,397
10.4.8104,938
10.4.7218,749
10.4.6694
10.4.592,477
10.4.4108,525
10.4.32,475
10.4.2131,044
10.4.17,265
10.4.061,117
10.3.714,717
9.8.82,400,764
10.3.64,077
9.8.713,035
10.3.51,305
10.3.411,912
10.3.32,323
10.3.21,564
10.3.121,488
10.3.0853
10.2.625,318
10.2.551,054
10.2.439,980
10.2.36,850
10.2.28
10.2.120,317
10.2.0248
10.1.04,582
10.0.42,248
10.0.3260
10.0.249,642
10.0.19,085
10.0.04,571
9.8.6813,695
9.8.529,354
9.8.416,622
9.8.3403
9.8.23,893
9.8.1608
9.8.045,132
9.7.645,315
9.7.512,344
9.7.495,924
9.7.330,216
9.7.211,045
9.7.142,715
9.7.07,236
9.6.512,592
9.6.43,118
9.6.312
9.6.2204
9.6.181,660
9.6.011,201
9.5.122,659
9.5.07,210
9.4.102,206
9.4.91,661
9.4.81,012
9.4.74,567
9.4.615,189
9.4.52,169
9.4.41,208
9.4.35,267
9.4.21,882
9.4.113
9.4.0108
9.3.18,289
9.3.0807
9.2.11,926
9.2.0470
9.1.512,161
9.1.43
9.1.31,145
9.1.2150
9.1.1209
9.1.01,037
9.0.2626
9.0.1173
9.0.0843
8.6.579,421
8.6.42,024
8.6.3569
8.6.21,019
8.6.175
8.6.0117
8.5.2386
8.5.1160
8.5.01,960
8.4.13,575
8.4.037
8.3.01,493
8.2.03,325
8.1.0618
8.0.0532
7.2.6248,013
7.2.511,002
7.2.4739
7.2.32,753
7.2.2660
7.2.1195
7.2.04
7.1.667,779
7.1.5957
7.1.42,546
7.1.3685
7.1.27,304
7.1.110,858
7.1.02,279
7.0.1218
7.0.019
6.7.7411,881
6.7.6530
6.7.5743
6.7.470
6.7.325
6.7.22,085
6.7.14
6.7.01,591
6.6.12,827
6.6.0619
6.5.4689
6.5.32,148
6.5.2131
6.5.11,275
6.5.0335
6.4.1676
6.4.02,449
6.3.71,812
6.3.61,181
6.3.537
6.3.41
6.3.3126
6.3.213
6.3.1143
6.3.012
6.2.3163
6.2.244
6.2.12
6.2.03
6.1.2332
6.1.170
6.1.0345
6.0.3173
6.0.273
6.0.14
6.0.027
5.2.03,427
5.1.1369
5.1.03
5.0.06
4.0.031
3.1.022
3.0.06
2.2.0897
2.1.15
2.1.02
2.0.24
2.0.13
2.0.04
1.3.13,209
1.3.03
1.2.080
1.1.20140605324
1.1.201405232
1.1.201405212
1.1.201405126
1.1.201405106
1.1.201404305
1.1.201404292
1.1.201404100
1.1.201404030
1.1.201403274
1.1.201403192
1.1.201403023
1.1.201402265
1.1.201402221
1.1.201402180
1.0.20140213451
1.0.201402032
1.0.201401303
1.0.201401176
1.0.201401102
1.0.201401092
1.0.201401032
1.0.201312223
0.8.201312131,504
0.8.201312091
0.8.201311047
0.8.201310296
0.8.201310203
0.8.201310173
0.8.201310151
0.8.201310092
0.8.201310076
0.8.2013100614
0.8.201310014
0.8.201309231
0.8.201309193
0.8.201309112
0.8.201309063
0.8.201309031
0.8.201309020
0.7.20130824356
0.7.201308104
0.7.201308081
0.7.201308073
0.7.201308064
0.7.201308051
0.6.201307312
0.6.201307305
0.6.201307290
0.6.201307281
0.6.201307213
0.6.201307164
0.5.201306290
0.5.201306260
0.5.201306253
0.5.201306175
0.5.201306162
0.5.201306151
0.4.201306032
0.4.201305302
0.4.201305281
0.4.201305242
0.4.201305215
0.4.201305153
0.4.201305071
0.3.201305021
0.3.201304276
0.3.201304247
0.3.201304233
0.2.201304132
0.1.2013040914

Package Sidebar

Install

npm i autoprefixer

Weekly Downloads

25,016,144

Version

10.4.21

License

MIT

Unpacked Size

199 kB

Total Files

83

Last publish

Collaborators

  • ai