require-font-style
Require explicit font-style in every @font-face block.
Rule catalog ID: R002
Targeted pattern scopeโ
font-styledeclarations inside@font-face.
What this rule reportsโ
@font-faceblocks that omitfont-style.
Why this rule existsโ
Explicit style declarations make face selection deterministic across normal and italic variants.
โ Incorrectโ
@font-face {
font-family: "Inter";
font-weight: 400;
src: url("./inter.woff2") format("woff2");
}
โ Correctโ
@font-face {
font-family: "Inter";
font-style: normal;
font-weight: 400;
src: url("./inter.woff2") format("woff2");
}