CSS Autoprefixer: Vendor Prefixes & Browser Engine Compatibility
Add required browser engine vendor prefixes (-webkit-, -moz-, -ms-) to modern CSS rules to ensure backward compatibility across older rendering engines.
Browser Rendering Engines & Prefix Taxonomy
Historically, browser rendering engines implemented experimental CSS specifications behind vendor prefixes before final W3C standardization:
- -webkit-: Chromium (Chrome, Edge, Brave), Safari, and WebKit-based mobile webviews (iOS).
- -moz-: Gecko engine powering Mozilla Firefox.
- -ms-: Trident and legacy EdgeHTML engines used in older Internet Explorer and legacy Microsoft Edge.
- Standard Unprefixed: Must always follow vendor prefixes so modern conforming browsers prioritize the finalized W3C specification.
Properties Requiring Prefix Safeguards
While modern browsers adhere closely to evergreen standards, specific CSS properties still benefit from prefix fallbacks in legacy or embedded environments:
-webkit-backdrop-filter: blur(...)for iOS Safari frosted glass effects.-webkit-line-clampfor multi-line text truncation.-webkit-user-select: nonefor consistent cross-browser text selection suppression.- Flexbox legacy fallbacks (
-webkit-box) for older Android webviews.
Pro Tip: Practical Application
Always place the standard unprefixed property as the last declaration in a block so that modern browsers override legacy vendor implementations.