# Vendor Prefixes

> The Vendor Prefixes in CSS are added before property names and are used to ensure compatibility with different browsers.

## Do I still need CSS vendor prefixes?

The special prefixes added to CSS properties by browser vendors to support experimental or non-standard features. Examples include `-webkit-`, `-moz-`, `-ms-` and `-o-`. They are used to ensure compatibility with different browsers until features become standard.

- Topic: Basics
- Type: syntax

## Example

Wrong:

```css
.panel {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
```

Right:

```css
.panel {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
```

Put the standard property last, so it wins wherever it is supported.

## Common mistakes

- Writing only `-webkit-` and forgetting the standard property.
- Copying old prefixed snippets that modern browsers no longer need.

## Key points

- Prefixes come from a build tool like Autoprefixer, not handwritten everywhere.
- The unprefixed property is written last, after any prefixed versions.
- No outdated prefixes like `-moz-border-radius` or `-webkit-box-shadow` are added.

## Interview questions

### Which vendor prefixes are still used?

Mostly `-webkit-`, for a few properties like `-webkit-line-clamp` and some text and mask features. Check support before adding any.

### Do vendor prefixes affect specificity?

No, they are separate property names, and invalid or unknown ones are simply ignored.

## Related cards

- [-webkit-](https://wonderium.dev/css/webkit-vendor-prefix.md)
- [-moz-](https://wonderium.dev/css/moz-vendor-prefix.md)
- [-ms-](https://wonderium.dev/css/ms-vendor-prefix.md)
- [@supports](https://wonderium.dev/css/supports.md)
- [Browser Engine](https://wonderium.dev/web/browser-engine.md)

---

- Level: [CSS](https://wonderium.dev/css.md)
- HTML version: https://wonderium.dev/css/vendor-prefixes
- Last updated: 2026-11-25
