Autoprefixer uses Browserslist, allowing to specify the targeted browsers using queries such as last 4 version
. It’s based on data from Can I Use and adds, arranges, and deletes vendor prefixes for selectors, properties, and values in CSS rules according to these insights as postprocessing step.
For giving Autoprefixer a try, there’s an online version available as well.
By running npx autoprefixer --info
in your project, you can also view what browsers are covered and what selectors, properties, and values are prefixed.