Which CSS Vendor Prefixes Do You Still Need? A Browserslist Guide
Understand vendor prefixes, write Browserslist queries for your real audience, and add the prefixes you need while removing outdated ones from your CSS.

Open an old stylesheet and you will probably find blocks like -webkit-transition, -moz-transition and transition stacked on top of each other. Some of those lines still matter today, but many have done nothing for a decade. Knowing which is which keeps your CSS smaller and easier to read without breaking anyone's browser.
Why prefixes exist
Browser makers used to ship new CSS features behind a vendor prefix while the standard was still changing: -webkit- for Safari and Chrome, -moz- for Firefox, -ms- for Internet Explorer and old Edge, and -o- for old Opera. Developers wrote the prefixed versions for the browsers that needed them and the standard property last, so that browsers which understood the final syntax used it.
Today most features ship unprefixed, but not all. Safari still asks for -webkit-user-select and, in older versions, -webkit-backdrop-filter. Some value keywords, such as the stretch sizing keyword, still need prefixed names in several engines. Selectors such as ::placeholder had prefixed forms that must sit in separate rules, because one unknown selector makes a browser drop the whole rule.
Describe your audience with Browserslist
Rather than memorising support tables, front-end tools ask you to describe your audience with a Browserslist query. A few examples:
- defaults means more than 0.5% usage, the last two versions of each browser, Firefox ESR, and nothing that is no longer maintained.
- last 2 versions, not dead covers the two newest versions of each browser.
- safari >= 15, ios >= 15 sets a minimum version.
- > 1% picks every version above one percent of global usage.
Queries are combined with commas or or for a union, and to keep only what two queries share, and not to remove browsers from the result. A query cannot start with not, which is a common mistake.
Adding and removing prefixes in the browser
The free CSS Autoprefixer takes your stylesheet and a query and does the rest. It resolves the query into a list of browser versions and shows it, so you can see exactly who you are targeting. It then reads your CSS, keeping comments, strings and nested blocks, and checks each declaration, value, selector and at-rule against a prefix table modelled on Can I Use data.
When a browser in your list needs a prefix, the tool adds it just before the standard line. When a prefixed line in your file is no longer needed by any browser in your list, it removes it. Every change appears in a table with the rule it belongs to and the browsers behind it, grouped into ranges such as Safari 18.6-26.1. That list is the best part: it explains your CSS instead of silently rewriting it.
A worked comparison
Run the component sample with defaults and five prefixes are added: -webkit-user-select for Safari and iOS, -webkit-backdrop-filter for an older iOS version, -webkit-mask-image, -webkit-background-clip: text and -webkit-image-set() for an older Chrome still in use. Nothing is removed.
Now load the legacy sample with last 2 versions, not dead. Eight outdated prefixes disappear, including -webkit-box-sizing, -moz-transition, -webkit-border-radius, the prefixed flex value and a whole @-webkit-keyframes block, and the file shrinks by more than half.
Special cases
If you still support Internet Explorer 11, two optional modes help. One adds the old -ms- flexbox properties for IE 10, and the other translates grid templates, lines and spans into the -ms-grid syntax. Named grid areas and gaps have no IE equivalent, and the tool warns about them rather than guessing.
There is also a strip mode that removes every vendor prefix before prefixing. It is a quick way to clean up a stylesheet that collected hand-written prefixes over the years and then add back only what the query needs.
Output and data
You can beautify the output with two spaces, four spaces or tabs, or minify it, then download or copy it and export the change list as CSV. The browser versions and usage shares in the tool are an editable example snapshot, not live data, so for a real project type in the latest versions and paste usage figures from your own analytics. The query results update immediately.
Keep the build honest
Prefixes are a moving target. Put a Browserslist query in your project, let tooling apply it, and revisit the query once a year. Your users' browsers change faster than your stylesheet does.



