require-format-hint
Require format(...) hints for url(...) entries in @font-face src.
Rule catalog ID: R005
Targeted pattern scopeโ
srcdeclarations inside@font-face.
What this rule reportsโ
url(...)entries that do not includeformat(...).
Why this rule existsโ
Format hints let browsers skip unsupported probes and improve source selection efficiency.
โ Incorrectโ
@font-face {
src: url("./inter.woff2");
}
โ Correctโ
@font-face {
src: url("./inter.woff2") format("woff2");
}