What is Autoprefixer and how does it work?
mainAutoprefixer is a PostCSS plugin that parses CSS and adds vendor prefixes to CSS rules using values from [Can I Use]. It allows you to write standard CSS without vendor prefixes, as it automatically applies them based on current browser popularity and property support.
Example Transformation:
Input:
::placeholder {
color: gray;
}
.image {
width: stretch;
}Output (depending on target browsers):
::-moz-placeholder {
color: gray;
}
::placeholder {
color: gray;
}
.image {
width: -moz-available;
width: -webkit-fill-available;
width: stretch;
}