CSS

css/baseline-check

Before using a newer CSS feature, check its Baseline status against the project's browser targets and plan the fallback.

minormanualfe-css-modern

Why

"Works in my browser" is not support. A feature that is Newly available works in the current version of every major browser but not in versions a part of the audience still uses; a feature that is not Baseline is missing in at least one engine. Using either for something essential hides content or breaks layout for those visitors.

Fix

Look the feature up (web-features explorer, MDN's Baseline box, webstatus.dev) and compare it with the project's browserslist or support policy. Widely available: use it. Newly available: use it when the targets allow, or as enhancement that degrades harmlessly. Not Baseline: only inside @supports with a fallback. Write the status and the date in a comment when it decides the code.

Examples

/* bad: the layout depends on a feature some targets lack */
.panel { position-anchor: --trigger; top: anchor(bottom); }
/* good: Baseline status checked 2026-11-11 (not Baseline), fallback first */
.panel { top: 100%; }
@supports (anchor-name: --a) { .panel { position-anchor: --trigger; top: anchor(bottom); } }

Sources

Facts

Id
css/baseline-check
Severity
minor
Check
manual a person reviews it; the report lists it as a checklist
Applies to
css scss less
Taught by the skill
fe-css-modern Modern CSS features
Since version
0.1.0

Rule file on GitHub

Read it in the terminal

npx github:dawidolko/frontend-skills explain css/baseline-check