Skip to content

CSS Unknown Vendor Prefix Ignored

Quick summary

You wrote -webkit-flexbox (an old draft name) — modern browsers ignore it and the property never applies.

Why this happens

  • Using an outdated prefixed property name from an old draft

  • Misspelling the prefix or the property after it

  • Forgetting the unprefixed standard property as a fallback

Minimal example

✗ Broken code
.box {
  display: -webkit-flexbox; /* old draft name — ignored */
}
✓ Fixed code
.box {
  display: -webkit-box; /* old syntax */
  display: -webkit-flex; /* 2012 syntax */
  display: flex; /* standard */
}

-webkit-flexbox was an early draft name that browsers do not recognize. Using the correct prefixed names and the standard flex ensures the property applies everywhere.

How to diagnose

  • Check DevTools — the prefixed declaration is ignored (struck through)

  • Look up the current support on caniuse.com for the property

  • Verify both prefixed and unprefixed forms are present

How to fix

  • Use the correct current prefixed name or drop the prefix if fully supported

  • Always include the standard unprefixed property after prefixed ones

  • Use Autoprefixer to generate correct prefixes automatically

How to prevent

  • Use Autoprefixer or a build tool that manages prefixes

  • Check caniuse.com before hand-writing prefixes

Related Resources

Related Glossary

Related Lessons

  • CSS

    Learn about vendor prefixes.

← Back to language