Vendor Prefixes

Verze:

17. 02. 2026

Zodpovědná osoba:

Dominik Šlechta

Vendor prefixes MUST NOT be written manually when Autoprefixer is configured. Font-rendering properties (-webkit-font-smoothing, -moz-osx-font-smoothing) MAY be applied manually as exceptions.

Introduction

This standard defines how vendor prefixes MUST be handled to avoid redundancy and ensure correct browser compatibility.

Rules

  • Vendor prefixes (-webkit-, -moz-, -ms-) MUST NOT be written manually if Autoprefixer is configured in the project build pipeline (webpack / Laravel Mix).

  • Autoprefixer handles prefix insertion automatically based on the project browserlist configuration, ensuring only necessary prefixes are added.

Exceptions

Font rendering properties MAY be written manually, as Autoprefixer does not cover them:

-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;

Similarly, touch-specific properties MAY be written manually:

-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
-webkit-touch-callout: none;

Verification

When unsure whether Autoprefixer covers a specific property, check the Autoprefixer online tool or the project browserlist configuration.